* killing an entire process group?
@ 2006-06-09 2:54 Adam Megacz
2006-06-09 9:22 ` Alex Efros
0 siblings, 1 reply; 2+ messages in thread
From: Adam Megacz @ 2006-06-09 2:54 UTC (permalink / raw)
Is there any way to tell runit that signals for a supervised service
must be sent to the entire process group rather than just the
immediate child of runsv?
I'm specifically trying to get k5start to work. It spawns a
user-specified process as a child, but periodically reawakens to
refresh the relevant kerberos/afs credentials. Right now runit sends
a TERM to k5start, which dies, but then the user process (which was a
child of k5start) becomes an orphaned process and keeps running
forever.
Thanks for any advice!
- a
--
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: killing an entire process group?
2006-06-09 2:54 killing an entire process group? Adam Megacz
@ 2006-06-09 9:22 ` Alex Efros
0 siblings, 0 replies; 2+ messages in thread
From: Alex Efros @ 2006-06-09 9:22 UTC (permalink / raw)
Hi!
On Thu, Jun 08, 2006 at 07:54:01PM -0700, Adam Megacz wrote:
> Is there any way to tell runit that signals for a supervised service
> must be sent to the entire process group rather than just the
> immediate child of runsv?
>
> I'm specifically trying to get k5start to work. It spawns a
> user-specified process as a child, but periodically reawakens to
> refresh the relevant kerberos/afs credentials. Right now runit sends
> a TERM to k5start, which dies, but then the user process (which was a
> child of k5start) becomes an orphaned process and keeps running
> forever.
Write your own handler of TERM signal.
man runsv (CUSTOMIZE CONTROL section).
--
WBR, Alex.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-09 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-09 2:54 killing an entire process group? Adam Megacz
2006-06-09 9:22 ` Alex Efros
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).