* debian *-run packages
@ 2008-04-21 19:57 Adam Megacz
0 siblings, 0 replies; only message in thread
From: Adam Megacz @ 2008-04-21 19:57 UTC (permalink / raw)
To: supervision
I noticed that some packages (such as socklog) have a *-run variant
(ie socklog-run) holding their runit scripts. However, all of the
examples I've found so far are packages that don't already have legacy
/etc/init.d/ scripts.
Lately I've been using the following commands manually to make many of
debian's packages (which have /etc/init.d/ scripts) run under
supervision using these commands:
DAEMON=xxx
dpkg-divert --quiet --rename /etc/init.d/$DAEMON
ln -s /usr/bin/sv /etc/init.d/$DAEMON
It occurred to me that, given a library of run-scripts for a bunch of
debian packages, one could easily automatically generate a debian
*-run package for each script which contained the run-script, a
postinst with the above lines, and a prerm that undoes them. The
$A-run package would depend on $A, ensuring that uninstalling $A would
first uninstall $A-run.
Anyways, I was thinking of throwing together a script to crank out 77
packages from this webpage:
http://smarden.org/runit/runscripts.html
Does this sound like a sensible idea, or is there some better plan
for runit-izing debian -- in the very near future -- in the works?
- a
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-21 19:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-21 19:57 debian *-run packages Adam Megacz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).