[Nut-upsuser] NUT on openSUSE 12.3 requires additional systemd service unit

Charles Lepple clepple at gmail.com
Sat Aug 10 22:05:14 UTC 2013


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 at gmail






More information about the Nut-upsuser mailing list