[Bug 944597] New: /etc/apcupsd/apccontrol: line 23: hibernate: command not found
http://bugzilla.opensuse.org/show_bug.cgi?id=944597 Bug ID: 944597 Summary: /etc/apcupsd/apccontrol: line 23: hibernate: command not found Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: All OS: Other Status: NEW Severity: Major Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: christian.bourque@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The control script packaged with apcupsd 3.14.11 (latest version available with openSUSE 13.2) is broken! The shell script /etc/apcupsd/apccontrol contains an invalid variable assignment: line 23: HIBERNATE=/usr/bin/systemctl hibernate So when a power outage occurs the script is triggered by the daemon but its execution fails with this error: Sep 04 02:09:10 alcor apcupsd[1432]: /etc/apcupsd/apccontrol: line 23: hibernate: command not found It seems that the space character is the cause of the problem, so instead of assigning the value the shell tries to execute the "hibernate" command which is clearly wrong! The result is that the shutdown sequence is not performed cleanly and the machine will just stop when the battery runs out of juice! The workaround I have found for now is to use the latest version available in the "hardware" repository (3.14.13) which contains the following fix: HIBERNATE="/usr/bin/systemctl hibernate" But this fix or version should be made available on the standard update channel of 13.2 since this is a major issue for people that uses apcupsd on servers! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=944597
Christian Bourque
http://bugzilla.opensuse.org/show_bug.cgi?id=944597
Stephan Kulow
http://bugzilla.opensuse.org/show_bug.cgi?id=944597
http://bugzilla.opensuse.org/show_bug.cgi?id=944597#c1
Stanislav Brabec
participants (1)
-
bugzilla_noreply@novell.com