Have a cron script that restarts vdr. However, I have configured vdr to use nice level -5. When the cron script restarts vdr, the nice value is at 5! Does not happen upon manual restart.
What does your cron script look like?
set -e || exit 1
exec >> /var/log/restart_vdr_to_save_epgdata.log
set -o pipefail
# update epg.data file (if it exists) not more often than every 10 hours
# (well, actually, I don't want vdr to be restarted more often than that...)
if [[ -e "$epgf" ]]; then
age=$(( $(date +%s) - $(stat -c %Y "$epgf") ))
(( age <= maxage )) && exit 0
# make sure we aren't recording something right now
nextrel=$(echo -e "next rel\nquit" | netcat localhost 2001 | grep ^250 | perl -ne '/^250\s+\S+\s+(\S+)/&&print $1') || nextrel=$minnextrel
(( nextrel < minnextrel )) && exit 0
Please reopen if gentoo-vdr-scripts-0.4.9 or newer is still affected.