supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Who actually gets the TERM signal in "runsvctrl down"?
@ 2004-06-25 14:01 Lloyd Zusman
  2004-06-25 15:33 ` Charlie Brady
  0 siblings, 1 reply; 22+ messages in thread
From: Lloyd Zusman @ 2004-06-25 14:01 UTC (permalink / raw)


Who actually receives the TERM signal when "runsvctrl down SVC" is
invoked?  Does that signal get sent to the SVC/run script?

The reason I'm asking is that I'm trying to put apache under runit
control.  I'd like "runsvctrl up apache" to invoke "apachectl start"
(that's trivially easy), and I'd like "runsvctrl down apache" to invoke
"apachectl stop".

If the TERM signal gets sent to the SVC/run script, then I can write a
trap for that signal within that script which would cause
"apachectl stop" to be invoked, thereby providing a clean shutdown.

Or is there a better way to do this?

Thanks in advance.

-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.



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

end of thread, other threads:[~2004-06-26 21:10 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 14:01 Who actually gets the TERM signal in "runsvctrl down"? Lloyd Zusman
2004-06-25 15:33 ` Charlie Brady
2004-06-25 16:03   ` Lloyd Zusman
2004-06-25 16:11     ` Charlie Brady
2004-06-25 16:36       ` Lloyd Zusman
2004-06-25 17:15         ` Paul Jarc
2004-06-26  0:26           ` Scott Gifford
2004-06-26  1:39           ` Lloyd Zusman
2004-06-26  2:17             ` Charlie Brady
2004-06-26  2:44               ` Lloyd Zusman
2004-06-26  3:01                 ` Lloyd Zusman
2004-06-26  4:03                   ` Lloyd Zusman
2004-06-26  8:17                     ` Thomas Schwinge
2004-06-26 15:45                     ` Charlie Brady
2004-06-25 18:27         ` Charlie Brady
2004-06-25 19:13           ` Lloyd Zusman
2004-06-25 19:48             ` Charlie Brady
2004-06-26  3:49             ` Paul Jarc
2004-06-26 21:10               ` Lloyd Zusman
2004-06-25 18:40     ` Jim Zajkowski
2004-06-25 16:13   ` Dean Hall
2004-06-25 16:17     ` Charlie Brady

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