[16:34] hi, i need an upstart script that simply logges the time when my desktop was powered on and when it shuts down [16:35] i am using this script http://pastebin.com/CmvtE0y8 [16:36] it works for power on but not for shutdown [16:41] lixus: try "start on filesystem or runlevel [06]" and remove the "stop on" [16:43] lixus: then, replace the post-start and post-stop with a simple "script" that looks at $UPSTART_EVENTS. If that variable contains "filesystem", the job was triggered on boot, else shutdown. [16:43] lixus: I'll add something along those lines to the cookbook the next time I update... [16:44] jhunt_, thanks, i'll try that. but then my post-stop section is obsolet ? [16:44] forget my last message [16:45] some elay in my irc client [17:09] jhunt_: actually I think he'd want start on filesystem or starting rc RUNLEVEL=[06] .. start on runlevel [06] will race with the actual shutdown. [17:09] jhunt_: not that I think his process will take > 10 seconds.