[systemd-devel] Problem with systemd and UPS [apcupsd]

Frank Daley interoperate at gmail.com
Wed Sep 21 23:14:10 PDT 2011


Trying to work out how to configure systemd to support following
scenario with a server running the apcupsd daemon

1. Server is configured to automatically restart when receives power.
2. If server is unplugged from UPS, and then is reconnected, it
starts. However, if the server is shut down due to a power failure,
once power is restored it does not automatically restart.

Information at https://help.ubuntu.com/community/apcupsd has scenario
where init script calls halt "otherwise the UPS will stay on and your
system will not automatically reboot when utility power returns".

How can systemd be configured to achieve the same result?

Thanks
Frank


More information about the systemd-devel mailing list