[Nut-upsuser] NUT 2.6.3, openSUSE 12.2 : UPS unit not switched off: Fixed

Stanislav Brabec sbrabec at suse.cz
Mon Nov 5 16:40:27 UTC 2012


Arnaud Quette wrote:

>         OpenSUSE 12.2 has fully embraced systemctl and systemd: I
>         tried grepping around in the /lib/systemd shutdown
>         specifications, but I cannot find any reference
>         to /etc/init.d/upsd powerdown.  This is beginning to look like
>         a bug in openSUSE 12.2 which I will report in their forums.

Yes, it looks like a one of regressions of migration to systemd.
HALT_POWERDOWN_INSERT is called from /etc/init.d/halt. Systemd has its
own definition of halt.service: /lib/systemd/system/halt.service,
so /etc/init.d/halt is never called.

>         Here is a fix: There is a file /etc/init.d/halt.local which is
>         currently empty:

Yes, /etc/init.d/halt.local is a good way to work-around it. But it is
not a good way for packagers, as this file is user editable.

I guess that adding a script either to /lib/systemd/system-shutdown/
would fix it.

Reported as openSUSE bug
https://bugzilla.novell.com/show_bug.cgi?id=788165

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/




More information about the Nut-upsuser mailing list