- next is 1.4.56
[lighttpd.git] / doc / initscripts.txt
blobe6104fa3dcc1cb77e6e7e9cc1c64c5b5bb6165a9
1 * lighttpd responds to the following signals:
3 SIGTERM - shut down immediately (terminate existing connections, then exit)
4 SIGINT  - shut down gracefully  (serve existing connections, then exit)
5 SIGUSR1 - reload gracefully     (serve existing connections, then reload config)
6 SIGHUP  - re-open log files     (NOTE: does not reload lighttpd configuration)
8 (Note: SIGUSR1 behavior is available in lighttpd 1.4.46 and later)
11 * lighttpd graceful restart
13 https://blog.lighttpd.net/articles/2005/09/02/graceful-restart/
14 The current recommended way to reload lighttpd config is to gracefully stop
15 and then to restart lighttpd.
17 With lighttpd 1.4.46 and later, SIGUSR1 is the recommended method to gracefully
18 handle configuration reloads and log rotation, though a graceful stop and then
19 restart of lighttpd is still required for lighttpd configurations which chroot.
22 * lighttpd initscripts
24 Depending on the operating system and distribution brand, there are many
25 ways to set up lighttpd to run as a daemon when the system starts up, and
26 to send signals to lighttpd for start/stop/restart/etc.
28 Rather than attempting to maintain scripts for an unknown number of distros,
29 here are links to a few, which can be used as examples.
31 Arch:
32 https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/lighttpd
34 Debian:
35 https://anonscm.debian.org/cgit/pkg-lighttpd/lighttpd.git/tree/debian
37 Fedora:
38 http://pkgs.fedoraproject.org/cgit/rpms/lighttpd.git/tree/
40 Gentoo:
41 https://gitweb.gentoo.org/repo/gentoo.git/tree/www-servers/lighttpd/files
43 openSUSE:
44 https://build.opensuse.org/package/show/server:http/lighttpd
46 sample systemd unit script: doc/systemd/lighttpd.service
48 Additional, updated information may be found at
49 https://redmine.lighttpd.net/projects/lighttpd/wiki/InstallFromSource