MymsMan
Ad detector
Warning technical discussion
I have long wished there was a way of telling when a Humax shuts down normally.
We have log records at start up but no corresponding record when the humax shuts down in response to the Power button or after a recording.
Looking at some of the routines in /mod/etc/init.d they are coded to handle both Start and Stop routines so it should be trivial to add shutdown logging but it doesn't appear to work.
A bit of googling indicates that init.d routines are not called at shutdown if they have terminated but some of the init.d routines are long running (eg S54recmon) so I tried adding logging to it
But this still doesn't work, why?
The google threads suggest using systemd in preference to init.d routines but that does not appear to be an option for us,
Any other thoughts of ways to achieve a shut down log record.
It would also be nice to detect when the Power button has been pressed but the ir package doesn't have an option to drive a process when a key is pressed.
I have long wished there was a way of telling when a Humax shuts down normally.
We have log records at start up but no corresponding record when the humax shuts down in response to the Power button or after a recording.
Looking at some of the routines in /mod/etc/init.d they are coded to handle both Start and Stop routines so it should be trivial to add shutdown logging but it doesn't appear to work.
A bit of googling indicates that init.d routines are not called at shutdown if they have terminated but some of the init.d routines are long running (eg S54recmon) so I tried adding logging to it
Bash:
stop)
echo "Stop Recmon" >> /mod/tmp/recmon.log
pkill -f /mod/sbin/recmon
;;
*)
But this still doesn't work, why?
The google threads suggest using systemd in preference to init.d routines but that does not appear to be an option for us,
Any other thoughts of ways to achieve a shut down log record.
It would also be nice to detect when the Power button has been pressed but the ir package doesn't have an option to drive a process when a key is pressed.