[12:36] 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] In what way is that more useful than the current sysvinit compatibility stuff? [12:46] A future version of Upstart will handle sysvinit scripts natively, which actually is more useful. [14:06] 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] dcorbin_work: you could use pre-start exec /etc/init.d/foo start [17:36] post-stop exec /etc/init.d/foo stop [17:40] mbiebl: It's more that I want my job to be triggered by an init.d script "event". [17:42] wrapping a sysv init script inside an upstart job will give you that [17:43] 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] 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] ion: I guess dcorbin_work doesn't want to modify each sysv init script individually [17:45] ion: But then I'm changing a script from some other package and I have to worry about it getting replaced [17:45] iirc the fedora /etc/init.d/rc.d script (or whoever it is called) [17:45] used to emit events when it started sysv init scripts [17:45] My immediate need is just one script "dependency". I just thought a general solution might be generally ehlpful. [17:46] that doesn't work if you run /etc/init.d/foo directly though [19:04] dcorbin_work: an alternative is to write an upstart job to replace the sysvinit script [19:05] JanC: yes, but doesn't help me today:) [19:06] if you write the replacement today it does :P [19:25] JanC: No, we haev to work with Ubuntu 10.4 :) [19:30] dcorbin_work: Ubuntu 10.04 uses upstart, so what's the problem to write an upstart job? === Md_ is now known as Md [20:44] 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.