[Solved]Backend not running shutdown command task on shutdown

For discussion of topics specific to MythTV on linux
Post Reply
jmosqw
Newcomer
Posts: 2
Joined: Fri Jun 09, 2023 7:36 am
Spain

[Solved]Backend not running shutdown command task on shutdown

Post by jmosqw »

Hi all,

Since yesterday I noticed the backend no longer runs the command script I have set to be run on shutdown after the iddle time.
Everthing was runnig as expected for a year or more, but suddenly it doenst run anymore
I run regular ubuntu 22.03 and backend 32 from official repository mythubuntu/32
I have found this is the log when the script ran OK until yesterday, first line shows my shutdown script just before halting the system
Jun 9 00:01:02 crm3 mythbackend: mythbackend[1484]: N Scheduler scheduler.cpp:3406 (ShutdownServer) Running the command to set the next scheduled wakeup time :-#012#011#011#011#011sudo /mnt/m2-1tb/mythtv/wakeup 1686273900 >>/mnt/m2-1tb/mythtv/wakeup.log 2>&1
Jun 9 00:01:08 crm3 mythbackend: mythbackend[1484]: N Scheduler scheduler.cpp:3437 (ShutdownServer) Running the command to shutdown this computer :-#012#011#011#011#011sudo /sbin/halt -p

Today I realized the log doesnt show the script line anymore, it just runs halt -p instead
Jun 9 09:47:28 crm3 mythbackend: mythbackend[1487]: N Scheduler scheduler.cpp:3437 (ShutdownServer) Running the command to shutdown this computer :-#012#011#011#011#011sudo /sbin/halt -p

what can I do to troubleshoot this?
Thankyou in advance
Last edited by jmosqw on Fri Jun 09, 2023 10:11 am, edited 3 times in total.
jmosqw
Newcomer
Posts: 2
Joined: Fri Jun 09, 2023 7:36 am
Spain

Re: Backend not running shutdown command task on shutdown

Post by jmosqw »

Well I found it was not an issue but that I didnt have anything schedulled and automatic mythfilldatabase was disabled, and because of that the scheduled wakeup command didnt run. It worked as expected.
Sorry for the rush into the forum! :-)
Post Reply