supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* graceful restart under runit
@ 2006-11-15 11:47 Dražen Kačar
  2006-11-15 16:08 ` Alex Efros
  0 siblings, 1 reply; 20+ messages in thread
From: Dražen Kačar @ 2006-11-15 11:47 UTC (permalink / raw)


Say I have a TCP server which listens on incoming connections on some TCP
port. Occasionaly I'd like to install and run a new version of the server
executable. Server source is under my control, for all intents and
purposes.

Normally I'd use SIGUSR1 to make the server close socket on which it
listens, finish processing current client sessions (depending on the
protocol, that might take seconds, minutes or hours) and exit.

Right after sending SIGUSR1 I'd start the new server version which would
just work for all new client connections.

If the server is managed by runit, things get complicated because runit
won't start the new server until the old one exits, so I either have to
abort existing client connections or suffer some time without service.

Is there a way to get around this?

-- 
 .-.   .-.    Yes, I am an agent of Satan, but my duties are largely
(_  \ /  _)   ceremonial.
     |
     |        dave@fly.srk.fer.hr


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

end of thread, other threads:[~2006-11-24 21:22 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-15 11:47 graceful restart under runit Dražen Kačar
2006-11-15 16:08 ` Alex Efros
2006-11-16 15:24   ` Dražen Kačar
2006-11-17  0:15     ` Alex Efros
2006-11-17  0:48       ` Paul Jarc
2006-11-17 13:34         ` Alex Efros
2006-11-17 14:53           ` Charlie Brady
2006-11-17 15:39             ` Gerrit Pape
2006-11-18  0:22             ` Alex Efros
2006-11-18  1:34               ` Charlie Brady
2006-11-18 12:31                 ` Alex Efros
2006-11-18 19:30                   ` Paul Jarc
2006-11-20 18:27                     ` Dražen Kačar
2006-11-20 19:32                       ` Paul Jarc
2006-11-20 19:43                         ` Paul Jarc
2006-11-22 19:25                         ` Dražen Kačar
2006-11-22 19:51                           ` Paul Jarc
2006-11-23 12:25                             ` Dražen Kačar
2006-11-24 21:22                               ` Paul Jarc
2006-11-17 13:14     ` Gerrit Pape

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