[13:15] <ilian> hi
[13:15] <ilian> I  am trying to create a new upstart job but I have problems how to add it, I copied the file in /etc/init and run initctl reload-configuration but the job still does not appear in the list, any ideas what is wrong?
[14:04] <JanC> ilian: reload-configuration is not needed
[14:04] <auntie> I have a script I need to run that effects the entire system... how do I get it to run as the very first task before any others in upstart?
[14:04] <JanC> ilian: and if it doesn't show up, there must be an error
[14:04] <auntie> *affect
[14:05] <auntie> effectively I want it to run right after init-bottom in the initrd, just after it runs init :P
[14:07] <JanC> maybe a bit of a hack, but you could add "--startup-event pre-startup" to the kernel commandline and add a job that starts on the 'pre-startup' event which does whatever you want to be done and when ready emits the 'startup' event (which is the default event emitted on boot, so it should start whatever would normally be started)
[14:09] <auntie> mm, looks like that might do it
[14:10] <JanC> BTW: de "pre-startup" is just something I made up, use whatever you want to call it
[14:10] <auntie> right
[14:10] <JanC> well, not whatever, make sure it's not the same as something used for other things  ;)
[14:10] <auntie> if I do it like this, is there some other default startup script that I would be circumventing?
[14:11] <auntie> don't want to break anything...
[14:11] <JanC> by default the startup event is "startup"
[14:11] <auntie> oh, oh I see
[14:12] <auntie> that makes sense now, I thought "startup" refered to a script, but it's just an event
[14:12] <JanC> yep
[14:12] <auntie> I just gotta emit startup from my own script
[14:12] <auntie> cool
[14:13] <JanC> hm, I wonder if this trick is in the cookbook already
[14:13] <auntie> it's a nice hack
[14:14] <auntie> I feel like I'm trying to use upstart as System V init...
[14:15] <auntie> might be an indicator that something is wrong ;)
[14:27] <ilian> JanC, yes I found the error and fixed it, thanks )
[14:29] <auntie> oh, aparantly upstart doesn't even use /usr/sbin/policy-rc.d
[14:29] <auntie> I figured it would, and that's why I was trying to delete the file pre-startup
[14:29] <auntie> guess I don't really have to? mmm
[15:11] <ilian> how can I split exec command arguments in several lines without getting "unknown stanza"