Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Feature request: Preventing vdr(+DVD plug-in) from shutting down
Hallo,
> I would like vdr to _not_ shut down when any of these conditions is true:
>
> - replaying an recording
> - playing a DVD (if you have that plug-in of course - had to be
> done within
> it I think)
> - /proc/vdr/no_shutdown (or anything like that) is set
you can do part of it with the VDR shutdown script.
vdr -s /path/to/vdrshutdown
On timeout VDR ist starting the scipt and if the script returns then the
Timeout starts over again.
vdrshutdown could be something like this :
#!/bin/bash
# if vdr2div is running don't shutdown
[ `ps -ef | grep -e "/wait2enc.sh"| grep -c -v grep` -ne 0 ] && \
if [ -s /usr/local/src/VDRtmp/JobQ ]; then
logger vdr2divx Job running - VDR is not stopped !!
exit 0
fi
shutdown -h now
But testing the replay of recording/DVD is difficult. You could try looking
in the syslog for messages saying that it is replaying. Have fun trying ..
Greetings
Christian
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index