initscripts.txt 1.8 KB

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