script to log power on and poweroff
Carlos Becker
f0877e61f2f879f5a1244afbbc63a01c at 2013.temporarily.de
Wed Nov 23 14:52:01 UTC 2011
Hello,
For time tracking I need a script that simply logs
the time when I switch on my computer and when I switch it off again.
I am using this script /etc/init/logmytime.conf
description "logmytime"
start on runlevel [0623]
post-start script
date >> /home/me/logmytime.log
end script
But this is only logging when I start my PC,
shutdown is not logged. I suspect that probably
the filesystem is allready unmountet when the script runs on shutdown.
How can I do it right ?
Thanks
Carlos
More information about the upstart-devel
mailing list