[mythtv-users] mythshutdown not able to shutdown the system / command=sudo systemctl poweroff, status=256, result=1

Oliver Kühn okuehn at gmx.net
Mon Jan 13 12:44:38 UTC 2014


i have updated my system to fedora 20 few weeks ago and I'm now 
struggling to get mythshutdown with mythwelcome running again.

according to mythbackend.log the shutdown after 60sec is triggering the 
correct mythshutdown --shutdown command.
looking at the mythshutdown log with --loglevel debug it indicates some 
error with the shutdown command "command=sudo systemctl poweroff, 
status=256, result=1"

2014-01-13 13:21:44.946596 I [2944/2951] SystemManager 
mythsystemunix.cpp:356 (run) - Managed child (PID: 2956) has exited! 
command=sudo systemctl poweroff, status=256, result=1

i tried already with both 'sudo shutdown -h now' and 'sudo systemctl 
poweroff'
my /etc/sudoers should be fine as i'm able to issue the both commands as 
user mythtv without any pw request from shell:
%mythtv ALL = NOPASSWD: /usr/sbin/shutdown, /proc/acpi/alarm, 
/usr/bin/mythshutdown, /usr/bin/setwakeup.sh, /bin/sh, 
/usr/bin/systemctl poweroff

any idea why mythshutdown is not able to poweroff the system and gets 
status=256, result=1 instead?


#################### mythbackend.log ##########################
2014-01-13 13:15:58.556405 N [2150/2184] Scheduler scheduler.cpp:2800 
(HandleIdleShutdown) - 60 secs left to system shutdown!
2014-01-13 13:16:28.556786 N [2150/2184] Scheduler scheduler.cpp:2800 
(HandleIdleShutdown) - 30 secs left to system shutdown!
2014-01-13 13:16:58.560803 I [2150/2184] Scheduler 
mythsystemunix.cpp:886 (Fork) - Managed child (PID: 2511) has started! * 
command=mythshutdown --check, timeout=0
2014-01-13 13:16:59.161907 I [2150/2184] Scheduler scheduler.cpp:2840 
(CheckShutdownServer) - CheckShutdownServer returned - OK to shutdown
2014-01-13 13:16:59.164327 N [2150/2184] Scheduler scheduler.cpp:2935 
(ShutdownServer) - Running the command to set the next scheduled wakeup 
time :-
                                                 mythshutdown 
--setwakeup 2014-01-13T15:13:00
2014-01-13 13:16:59.465170 N [2150/2184] Scheduler scheduler.cpp:2966 
(ShutdownServer) - Running the command to shutdown this computer :-
                                                 mythshutdown --shutdown 
--verbose all --loglevel debug --logpath /var/log/mythtv
2014-01-13 13:16:59.467148 I [2150/2184] Scheduler 
mythsystemunix.cpp:886 (Fork) - Managed child (PID: 2541) has started! * 
command=mythshutdown --shutdown --verbose all --loglevel debug --logpath 
/var/log/mythtv, timeout=0
2014-01-13 13:16:59.960633 I [2150/2507] SystemManager 
mythsystemunix.cpp:356 (run) - Managed child (PID: 2541) has exited! 
command=mythshutdown --shutdown --verbose all --loglevel debug --logpath 
/var/log/mythtv, status=0, result=0
2014-01-13 13:20:28.554616 W [2150/2184] Scheduler scheduler.cpp:2769 
(HandleIdleShutdown) - Waited more than 60 seconds for shutdown to 
complete - resetting idle time


################### mythshutdown.log ########################
2014-01-13 13:21:44.850244 D [2944/2944] CoreContext 
mythsystemunix.cpp:790 (Fork) - Launching: sudo systemctl poweroff
2014-01-13 13:21:44.851670 I [2944/2944] CoreContext 
mythsystemunix.cpp:886 (Fork) - Managed child (PID: 2956) has started! * 
command=sudo systemctl poweroff, timeout=0
2014-01-13 13:21:44.851773 I [2944/2944] CoreContext 
referencecounter.cpp:114 (IncrRef) - (0xffcdb0)::IncrRef() -> 2
2014-01-13 13:21:44.946596 I [2944/2951] SystemManager 
mythsystemunix.cpp:356 (run) - Managed child (PID: 2956) has exited! 
command=sudo systemctl poweroff, status=256, result=1



More information about the mythtv-users mailing list