Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: CurrentChannel not saved on Poweroff



Dick Streefland wrote:
> 
> When I shutdown vdr with the Power button on the remote control, the
> current channel is not saved in /etc/vdr/setup.conf. But when I stop
> vdr on the commandline with "/etc/init.d/vdr stop", the channel is
> saved as expected. Is this the intended behavior? If yes, how can I
> change it?
> 
> /var/log/messages shows in the first case:
> 
> Jul  6 21:11:53 vdr vdr[214]: Power button pressed
> Jul  6 21:11:53 vdr vdr[214]: confirm: Druk een toets om shutdown af te breken
> Jul  6 21:11:59 vdr vdr[214]: confirmed
> Jul  6 21:11:59 vdr vdr[214]: executing '/usr/bin/shutdownvdr 1089216000 74887 5 "That '70s show" 1'
> Jul  6 21:11:59 vdr shutdownvdr: Next Timer in 1248 minutes, shutting down with: /etc/init.d/vdr stop ; sleep 30 ; /sbin/shutdown -h now
> 
> and in the second case:
> 
> Jul  6 21:27:45 vdr vdr[214]: caught signal 15
> Jul  6 21:27:45 vdr vdr[214]: saved setup to /etc/vdr/setup.conf
> 
> I'm using: VDR version 1.2.6 (ElchiAIO4c)

Your shutdown script must return to VDR before the actual shutdown
happens, otherwise VDR won't be able to handle the signal 15 that is sent
to all processes upon shutdown, and that's when it saves the setup.conf
file.

Klaus




Home | Main Index | Thread Index