[mythtv-users] Where do you put script that stops automatic shutdown?
philledwards at gmail.com
Thu Jan 31 21:41:00 UTC 2008
> What and where do I call my script that check for example a running
> telnet session and does mythshutdown automatically find it? I think I
> have confused myself.
Write a shell script and put it somewhere in /usr/local/bin. Call it
whatever you like - eg myth_pre_shut.sh. Make sure it's executable and
returns the return codes as specified on
Run mythtvsetup and in the Pre Shutdown check-command field type in
Then when Mythshutdown runs it will execute this shell script first
and depending on the return value will either proceed or abort the
One thing I'm not sure of with this is whether mythbackend will run
mythshutdown again at a later time. I have a feeling that once it's
decided the shutdown can't proceed it won't try again so the box will
never shut down unless mythbackend is restarted and it runs the
mythshutdown check again. I believe this is how it used to behave, but
am not sure with the current version.
More information about the mythtv-users