upstart socket activation

Clint Byrum clint at ubuntu.com
Wed Mar 16 13:13:27 UTC 2011


On Wed, 2011-03-16 at 11:17 +0100, Steffen Barszus wrote:
> I have read about socket activation feature, and i'm quite
> confused now and would like to have a definitive answer.
> 
> Is the socket activation:
> a) xinetd like: start the provider of the socket, once the socket is
> accessed ? Anything special done until the provider is available ?

Yes its like xinetd, though instead of an accepted socket being
available, you're getting a listening socket with a connection ready to
accept, so most daemons (no daemons?) won't support this just yet.

> b) can it also be used, that IF the provider is started, to start the
> client of it at this event. (so basically reverse)
> 
> i would like sto start the client as soon as the server is providing
> the socket for it (network or file)
> 

This is handled without socket activation:

start on started server





More information about the upstart-devel mailing list