supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* "sv down foo" => kill -SIGQUIT?
@ 2006-06-03  6:42 Adam Megacz
  2006-06-03 12:04 ` Alex Efros
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Megacz @ 2006-06-03  6:42 UTC (permalink / raw)



I just discovered (or was pointed to) runit.  It rocks.

However, I have one service (OpenAFS's fileserver) that needs to be
sent a SIGQUIT as the way of telling it to shut down gracefully.
Sending a SIGTERM causes it to simply quit immediately, and the next
time it starts up it has to do a sort of psuedo-fsck scan of its
files, which can take around an hour in some cases.

Is there any way to tell runit that this process wants to be sent a
SIGQUIT rather than SIGTERM?  I know about "sv quit foo", but I'm
worried I'll accidentally type "sv down foo".

Thanks,

  - a

-- 
PGP/GPG: 5C9F F366 C9CF 2145 E770  B1B8 EFB1 462D A146 C380



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

* Re: "sv down foo" => kill -SIGQUIT?
  2006-06-03  6:42 "sv down foo" => kill -SIGQUIT? Adam Megacz
@ 2006-06-03 12:04 ` Alex Efros
  2006-06-03 19:21   ` contrib OpenAFS server script for runit [Was: "sv down foo" => kill -SIGQUIT?] Adam Megacz
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Efros @ 2006-06-03 12:04 UTC (permalink / raw)


Hi!

On Fri, Jun 02, 2006 at 11:42:37PM -0700, Adam Megacz wrote:
> Is there any way to tell runit that this process wants to be sent a
> SIGQUIT rather than SIGTERM?  I know about "sv quit foo", but I'm
> worried I'll accidentally type "sv down foo".

Check runsv manual page, 'CUSTOMIZE CONTROL' section.

-- 
			WBR, Alex.


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

* contrib OpenAFS server script for runit  [Was: "sv down foo" => kill -SIGQUIT?]
  2006-06-03 12:04 ` Alex Efros
@ 2006-06-03 19:21   ` Adam Megacz
  0 siblings, 0 replies; 3+ messages in thread
From: Adam Megacz @ 2006-06-03 19:21 UTC (permalink / raw)
  Cc: rra, pape


Alex Efros <powerman@powerman.asdfGroup.com> writes:
>> Is there any way to tell runit that this process wants to be sent a
>> SIGQUIT rather than SIGTERM?  I know about "sv quit foo", but I'm
>> worried I'll accidentally type "sv down foo".
>
> Check runsv manual page, 'CUSTOMIZE CONTROL' section.

Perfect!  Thanks!  I'd like to contribute the following configuration
to handle the OpenAFS server suite (openafs.org)

/var/service/afs-server/run

  #!/bin/bash
  exec /usr/sbin/bosserver -nofork

/var/service/afs-server/control/t

  #!/bin/bash
  sv quit afs-server

Bosserver really needs to be sent SIGQUIT; if you sent it SIGTERM it
will die but leave its child processes running (orphaned), at which
point they're difficult to easily shut down cleanly.

You might want to consider adding this here in case other people don't
know about the SIGQUIT thing (it took me a while to figure it out).

  http://smarden.org/runit/runscripts.html

Thanks again; runit is great!

  - a


-- 
PGP/GPG: 5C9F F366 C9CF 2145 E770  B1B8 EFB1 462D A146 C380



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

end of thread, other threads:[~2006-06-03 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-03  6:42 "sv down foo" => kill -SIGQUIT? Adam Megacz
2006-06-03 12:04 ` Alex Efros
2006-06-03 19:21   ` contrib OpenAFS server script for runit [Was: "sv down foo" => kill -SIGQUIT?] 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).