[mythtv-users] Anyone know what could cause "SetWakeuptimeCommand failed" to start happening causing automatic shutdown to no longer work?

nospam312 nospam312 at gmail.com
Wed Mar 18 19:20:34 UTC 2009


> it probably includes http://svn.mythtv.org/trac/changeset/20023 (see
> 20021 for the full description).
> That change is necessary otherwise the backend would shutdown even if
> the wake up time couldn't be set.
>
>> My script that sets the wakeup time is not sending back an exit status
>> but the examples on the Wiki do not seem to indicate it is needed?
>
> if the script exits normally without exit(1), die, ... the exit code
> should be 0. You chan check with 'echo $?' directly after running your
> script at the command line.
>
>> For completeness what exit/status code should my Perl script be
>> sending back once the time has been set just in case the problems
>> started after updating to a newer fixes release?
>
> 0 for success

Thanks for replying I have investigated further and either the new
check in mythtv fixes is causing a problem and I need to fix some
configuration issue or there has been an update in Mythbuntu that is
causing the problem.  I have a script that sets up all the
Wakeup/Shutdown options and I have even rerun that in case something
has changed but I am still having the same problem.

The actual script that sorts out the setting of the time seems to be fine.

The command it is not liking is (SetWakeuptimeCommand failed):

sudo mythshutdown --setscheduledwakeup

echo $? returns a 1 after that command is executed.

Does this mean mythshutdown --setscheduledwakeup should actually be
returning a 0 if it is successful as currently it seems to be
returning 1 for success - no error is reported?

Does anyone know of a fix/workaround for this?

TIA


More information about the mythtv-users mailing list