/srv/irclogs.ubuntu.com/2011/06/23/#upstart.txt

dcorbin_workIs there some reason an upstart script couldn't be written that would "generically wrap" an /etc/init.d script, as a migration aid.12:36
ionIn what way is that more useful than the current sysvinit compatibility stuff?12:45
ionA future version of Upstart will handle sysvinit scripts natively, which actually is more useful.12:46
dcorbin_workion: 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.14:06
mbiebldcorbin_work: you could use pre-start exec /etc/init.d/foo start17:36
mbieblpost-stop exec /etc/init.d/foo stop17:36
dcorbin_workmbiebl: It's more that I want my job to be triggered by an init.d script "event".  17:40
mbieblwrapping a sysv init script inside an upstart job will give you that17:42
dcorbin_workYes.  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:43
ionYou 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:44
mbieblion: I guess dcorbin_work doesn't want to modify each sysv init script individually17:45
dcorbin_workion:  But then I'm changing a script from some other package and I have to worry about it getting replaced17:45
mbiebliirc the fedora /etc/init.d/rc.d script (or whoever it is called)17:45
mbieblused to emit events when it started sysv init scripts17:45
dcorbin_workMy immediate need is just one script "dependency".  I just thought a general solution might be generally ehlpful.17:45
mbieblthat doesn't work if you run /etc/init.d/foo directly though17:46
JanCdcorbin_work: an alternative is to write an upstart job to replace the sysvinit script19:04
dcorbin_workJanC: yes, but doesn't help me today:)19:05
JanCif you write the replacement today it does  :P19:06
dcorbin_workJanC: No, we haev to work with Ubuntu 10.4 :)19:25
JanCdcorbin_work: Ubuntu 10.04 uses upstart, so what's the problem to write an upstart job?19:30
=== Md_ is now known as Md
dcorbin_workJanC: 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.20:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!