From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
To: supervision@list.skarnet.org
Subject: runsv and runsvdir problems
Date: Mon, 27 Oct 2008 19:12:21 +0200 [thread overview]
Message-ID: <8e04b5820810271012h3d798033t3599cdc468482c89@mail.gmail.com> (raw)
Hello all!
First of all I must say I like the runit suite very much, and for
about half a year I use it to manage almost all my services (normal
ones and personal ones) on my laptop.
Usually it runs smoothly, without any big problems, with a few exceptions:
* first of all I use runsvdir for all the system services (like
udev, getty, etc.);
* also I allow each user (my self for now) to have a special
service that runs another runsvdir;
* as my services I use anything, from the X server and client,
bittorent client, to the music player;
Something like
-- runsvdir /services
\-- runsv /services/udev
\-- runsv /services/getty-1
...
\-- runsv -> runsvdir /services/ciprian
\-- runsv x
\-- runsv vpn
\-- ...
But there are a couple of problems with this setup (so I propose
some feature requests):
* first of all a lot of services are not started by default (by
using the 'down' file), but this doesn't stop runsv to start the
logger => could there be an option to start the loggers only when the
server actually starts?
* if I send HUP to runsvdir /services it sends TERM to runsv
/services/ciprian, which in turn sends TERM to runsvdir
/services/ciprian which breaks, and leaves all my services dangling...
=> could there be an option to actually pass the same signal down the
chain? (for example if I send TERM to runsv or runsvdir, it should
send TERM downpath, and so for any other signal, for example USR1,
etc.)
* if I want to stop the runsvdir /services it sends the signal to
all its children, but exists immediatly, and this is a problem if I
stop it from an rc.0 or 6 script, because it should wait for all the
children to actually stop; for now it leaves them dangling, and the
unmounting of the file systems breaks... => could there be an option
to actually make runsvdir to wait for it's children?
* if a process takes to long to terminate (when it receives TERM
signal), it would be nice for runsv to actually send KILL, but this
should be configurable, as I wouldn't like to have runsv kill runsvdir
like this;
* (a small annoyance) it would be nice to be able to combine runsv
and runsvdir into a single command, as this would reduce the number of
runsv processes, until I actually need to start a service;
So I repeat that runit suite is a very good one, but I would be
very happy to see these problems solved.
Thanks all, and keep up the good work,
Ciprian Dorin Craciun.
next reply other threads:[~2008-10-27 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 17:12 Ciprian Dorin Craciun [this message]
2008-10-27 17:30 ` Alex Efros
2008-10-27 18:03 ` Ciprian Dorin Craciun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e04b5820810271012h3d798033t3599cdc468482c89@mail.gmail.com \
--to=ciprian.craciun@gmail.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).