[12:36] <dcorbin_work> Is there some reason an upstart script couldn't be written that would "generically wrap" an /etc/init.d script, as a migration aid.
[12:45] <ion> In what way is that more useful than the current sysvinit compatibility stuff?
[12:46] <ion> A future version of Upstart will handle sysvinit scripts natively, which actually is more useful.
[14:06] <dcorbin_work> ion: I don't know anything about current compatibility.  I just know that I want to trigger an upstart job based on the start of an init.d script.
[17:36] <mbiebl> dcorbin_work: you could use pre-start exec /etc/init.d/foo start
[17:36] <mbiebl> post-stop exec /etc/init.d/foo stop
[17:40] <dcorbin_work> mbiebl: It's more that I want my job to be triggered by an init.d script "event".  
[17:42] <mbiebl> wrapping a sysv init script inside an upstart job will give you that
[17:43] <dcorbin_work> Yes.  That's why I asked if it was possible write a generic upstart script that would do that for any old init.d script.
[17:44] <ion> You can add e.g. ‘initctl emit starting-foo’, ‘initctl emit started-foo’, ‘initctl emit stopping-foo’, ‘initctl emit stopped-foo’ to the sysvinit script to generate Upstart events.
[17:45] <mbiebl> ion: I guess dcorbin_work doesn't want to modify each sysv init script individually
[17:45] <dcorbin_work> ion:  But then I'm changing a script from some other package and I have to worry about it getting replaced
[17:45] <mbiebl> iirc the fedora /etc/init.d/rc.d script (or whoever it is called)
[17:45] <mbiebl> used to emit events when it started sysv init scripts
[17:45] <dcorbin_work> My immediate need is just one script "dependency".  I just thought a general solution might be generally ehlpful.
[17:46] <mbiebl> that doesn't work if you run /etc/init.d/foo directly though
[19:04] <JanC> dcorbin_work: an alternative is to write an upstart job to replace the sysvinit script
[19:05] <dcorbin_work> JanC: yes, but doesn't help me today:)
[19:06] <JanC> if you write the replacement today it does  :P
[19:25] <dcorbin_work> JanC: No, we haev to work with Ubuntu 10.4 :)
[19:30] <JanC> dcorbin_work: Ubuntu 10.04 uses upstart, so what's the problem to write an upstart job?
[20:44] <dcorbin_work> JanC: as an example, the postgres version we have installed doesn't use upstart.  We've written an upstart script for our software.  We'd like it to depend on postgres.  We'd like to not change the software as packaged.