[doc] systemd socket activation config example
(minor edits by gstrauss) github: closes #96 x-ref: "doc/systemd: add example lighttpd.socket for systemd socket activation" https://github.com/lighttpd/lighttpd1.4/pull/96
This commit is contained in:
parent
146ea6bad0
commit
4f0261e5e1
|
@ -104,6 +104,12 @@ server.use-ipv6 = "enable"
|
|||
server.username = "lighttpd"
|
||||
server.groupname = "lighttpd"
|
||||
|
||||
##
|
||||
## Enable lighttpd to serve requests on sockets received from systemd
|
||||
## https://www.freedesktop.org/software/systemd/man/systemd.socket.html
|
||||
##
|
||||
#server.systemd-socket-activation = "enable"
|
||||
|
||||
##
|
||||
## enable core files.
|
||||
##
|
||||
|
|
|
@ -1 +1 @@
|
|||
EXTRA_DIST=lighttpd.service
|
||||
EXTRA_DIST=lighttpd.service lighttpd.socket
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# please note: lighttpd.conf must contain directive:
|
||||
# server.systemd-socket-activation = "enable"
|
||||
|
||||
[Unit]
|
||||
Description=lighttpd socket
|
||||
|
||||
[Socket]
|
||||
# Enable listening on http port
|
||||
ListenStream=80
|
||||
# To enable listening on https port, lighttpd config needs SSL setup
|
||||
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL
|
||||
#ListenStream=443
|
||||
Service=lighttpd.service
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
Loading…
Reference in New Issue