1START_SERVER(1)       User Contributed Perl Documentation      START_SERVER(1)
2
3
4

NAME

6       start_server - a superdaemon for hot-deploying server programs
7

SYNOPSIS

9         start_server [options] -- server-prog server-arg1 server-arg2 ...
10
11         # start Plack using Starlet listening at TCP port 8000
12         start_server --port=8000 -- plackup -s Starlet --max-workers=100 index.psgi
13

DESCRIPTION

15       This script is a frontend of Server::Starter.  For more information
16       please refer to the documenation of the module.
17

OPTIONS

19   --port=(port|host:port)
20       TCP port to listen to (if omitted, will not bind to any ports)
21
22   --path=path
23       path at where to listen using unix socket (optional)
24
25   --interval=seconds
26       minimum interval to respawn the server program (default: 1)
27
28   --signal-on-hup=SIGNAL
29       name of the signal to be sent to the server process when start_server
30       receives a SIGHUP (default: SIGTERM)
31
32   --pid-file=filename
33       if set, writes the process id of the start_server process to the file
34
35   --status-file=filename
36       if set, writes the status of the server process(es) to the file
37
38   --restart
39       this is a wrapper command that reads the pid of the start_server
40       process from --pid-file, sends SIGHUP to the process and waits until
41       the server(s) of the older generation(s) die by monitoring the contents
42       of the --status-file
43
44   --help
45       prints this help
46
47   --version
48       prints the version number
49

AUTHOR

51       Kazuho Oku
52

SEE ALSO

54       Server::Starter
55

LICENSE

57       This library is free software; you can redistribute it and/or modify it
58       under the same terms as Perl itself.
59
60
61
62perl v5.12.2                      2011-01-18                   START_SERVER(1)
Impressum