supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* daemon under runit?
@ 2006-12-05 22:34 Toni Mueller
  2006-12-06 13:46 ` Alex Efros
  0 siblings, 1 reply; 3+ messages in thread
From: Toni Mueller @ 2006-12-05 22:34 UTC (permalink / raw)
  Cc: support



Hello,

I'm struggling with a program that, in many cases, forks to become a
daemon, that I'd like to run under runit (1.7.1). So far, I tried to
start the program in the run script, then wait in a 'finish' script for
it, and also have a control/t script to kill it if someone says
something like "sv down service". Unfortunately, in most cases, this
does not seem to work - the control/t script is not accessed when I
issue 'sv down service' (as "ls -lta" shows). One of the problems is
that the file supervise/pid contains the pid of the finish script in
case the program forked, no longer the pid of the daemon itself. I
hoped to achieve something similar to fghack (from daemontools), but so
far failed.

This is on Debian GNU/Linux, kernel 2.6.18.


Any ideas are _very_ welcome!


Best,
--Toni++



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-12-14 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-05 22:34 daemon under runit? Toni Mueller
2006-12-06 13:46 ` Alex Efros
2006-12-14 13:02   ` Toni Mueller

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).