Roberto Martelli
2013-Dec-01 13:19 UTC
[Nut-upsuser] upsmon error: Unable to call shutdown command
In my "upsmon.conf" I've setted this option for shutdown command: SHUTDOWNCMD "/usr/sbin/pm-hibernate" but when I pull the plug on my ups in way to test if this command works, I obtain this error (in /var/log/syslog): Dec 1 13:39:03 ubux upsmon[4561]: parent: Unable to call shutdown command: /usr/sbin/pm-hibernate Instead if I set this shutdown command: SHUTDOWNCMD "/sbin/shutdown -h now" everything works correctly. Any help? My nut version is 2.7.1 (autocompiled) My driver in use is "nutdrv_qx" Everything, except upsmon, seems working correctly.
Roger Price
2013-Dec-01 13:27 UTC
[Nut-upsuser] upsmon error: Unable to call shutdown command
On Sun, 1 Dec 2013, Roberto Martelli wrote:> In my "upsmon.conf" I've setted this option for shutdown command: > SHUTDOWNCMD "/usr/sbin/pm-hibernate" > but when I pull the plug on my ups in way to test if this command works, > I obtain this error (in /var/log/syslog): > Dec 1 13:39:03 ubux upsmon[4561]: parent: Unable to call shutdown command: > /usr/sbin/pm-hibernateIf you call "/usr/sbin/pm-hibernate" from the command line, does it execute correctly? Roger
Roberto Martelli
2013-Dec-01 13:46 UTC
[Nut-upsuser] upsmon error: Unable to call shutdown command
> If you call "/usr/sbin/pm-hibernate" from the command line, does it > execute correctly? > > RogerObviously. Also thi command doesn't works with upsmon (but works from command line): /usr/sbin/hibernate
Charles Lepple
2013-Dec-02 13:54 UTC
[Nut-upsuser] upsmon error: Unable to call shutdown command
On Dec 1, 2013, at 8:19 AM, Roberto Martelli wrote:> My nut version is 2.7.1 (autocompiled)Is it safe to assume you are using Linux (given the pm-hibernate command)? Are there any access control systems such as SELinux or AppArmor that might be interfering with the system() call? -- Charles Lepple clepple at gmail
Possibly Parallel Threads
- upsmon error: Unable to call shutdown command
- upsmon error: Unable to call shutdown command
- upsmon error: Unable to call shutdown command
- upsmon errors with /usr/sbin/pm-suspend as the shutdown command
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)