You are not logged in.
In my remote PC, I install `apcupsd` (https://wiki.archlinux.org/title/APC_UPS) package, enable apcupsd service and then test my configuration by setting `TIMEOUT` to `1` in the `/etc/apcupsd/apcupsd.conf` file.
After plugging out the power cable, I notice my PC receives the shutdown signal but hangs half way, with all network connections off and my ssh session broken, as its motherboard lights are still on and its hard drivers are still running.
I finally solved this problem by hacking `/etc/apcupsd/apccontrol` script:
```
23a24
> POWEROFF=/usr/bin/poweroff
111c112,113
< ${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown"
---
> # ${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown"
> ${POWEROFF}
```
But I would like to know if some body has encountered this problem before, and if any better solution/suggestion.
Offline