Dr Andrew Scott G7VAV

My photo
 
April 2024
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12


socket-event

Section: Maintenance Commands (8)
Updated: 2011-03-08
Index Return to Main Contents
 

NAME

socket - event signalling that a socket connection has been made  

SYNOPSIS

socket PROTO=PROTO PORT=PORT ADDR=ADDR

socket PROTO=PROTO PATH=PATH  

DESCRIPTION

The socket event is generated by the upstart-socket-bridge(8) daemon when a socket connection is made whose details match the socket event condition and environment specified in a jobs start on or stop on stanza.

When an incoming connection is detected, the file descriptor representing the socket is passed to the job in question to allow it to accept(2) the connection. Additionally, the environment variable UPSTART_JOB will contain the name of the event ("socket") and the environment variable UPSTART_FDS will contain the number of the file descriptor corresponding to the listening socket.  

EXAMPLES

 

Internet socket

Start web server when first client connects from localhost:

start on socket PROTO=inet PORT=80 ADDR=127.0.0.1
 

Local socket


start on socket PROTO=unix PATH=/var/run/.s.pgsql.1234
 

Abstract socket


start on socket PROTO=unix PATH=@/at/upstart/example
 

AUTHOR

Written by Scott James Remnant <scott@netsplit.com>

Manual page written by James Hunt <james.hunt@ubuntu.com>  

BUGS

Report bugs at <https://launchpad.net/upstart/+bugs>  

COPYRIGHT

Copyright © 2011 Canonical Ltd.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

SEE ALSO

init(5) init(8) socket(2) socket(7) upstart-socket-bridge(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
Internet socket
Local socket
Abstract socket
AUTHOR
BUGS
COPYRIGHT
SEE ALSO


for client 3.17.28.48
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/