Hi.
Hongli Lai <
hon...@phusion.nl> writes:
> I don't think it would make sense. Runit works very differently than
> Upstart. Creating a custom policy-rc.d that integrates with Runit
> would probably cause more problems than it solves.
>
I agree it's not necessarily usfeul in all cases, but I do have a need
for this in the case when I'm testing Debian packages whose postinst
scripts tend to ask restart of services like apache or postgresql, using
invoke-rc.d.
Now, with upstart it may be different, but on Debian, it's not yet (and
probably won't be) upstart, so there's clearly a use case.
The interesting feature of sv is that you can symlink /etc/init.d/
scripts to it and it works (upstream feature apparently).
You'll find at
https://fusionforge.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=fusionforge/users/olberger.git;a=blob;f=vm/docker/policy-rc.d;h=acf10b5bb2159044f3c94fc90d6943d98b226d2d;hb=refs/heads/docker
an example of such a policy-rc.d script, which allows me to intercept
calls to invoke-rc.d in package postinst script and divert them
("silently") to sv invocations.
Hope this helps.
Best regards,
--
Olivier BERGER
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)