On Aug 10, 2013, at 5:43 PM, Roger Price wrote: > OpenSUSE 12.3 has fully embraced systemd, but to get NUT working correctly > now requires some further systemd engineering in addition to the usual NUT > configuration files. A new systemd service unit is needed to power off the > UPS. > > The service unit consists of a new file > /etc/systemd/system/ups-delayed-shutdown.service > > [Unit] > Description=Initiate delayed UPS shutdown > Before=umount.target > DefaultDependencies=no > > [Service] > Type=oneshot > ExecStart=/usr/lib/ups/driver/upsdrvctl shutdown > > [Install] > WantedBy=poweroff.target > > This service unit should be enabled with root command > > systemctl --system reenable /etc/systemd/system/ups-delayed-shutdown.service > > I have tested this setup with 64 bit openSUSE 12.3 and NUT 2.6.5 using an > Eaton Ellipse ASR 1500 USBS. 9 seconds after server poweroff, the UPS powers > off. When wall power returns the server restarts correctly.
I still haven't messed with systemd yet, so I am in over my head here. Is this similar to what Kjell posted about? Or is it in addition to that? http://www.kepstin.ca/blog/networkupstoolsnutandsystemd/ -- Charles Lepple clepple@gmail _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser