Browse Source

Add systemd unit file

Change-Id: I680ab136870a8474e4979517fe46f2c9eff8ce34
personal/stbuehler/wip
Marcus Rückert 7 years ago
parent
commit
17d066bc57
  1. 2
      contrib/Makefile.am
  2. 12
      contrib/systemd/lighttpd2.service

2
contrib/Makefile.am

@ -1,4 +1,4 @@
EXTRA_DIST=angel.conf lighttpd.conf mimetypes.conf service \
EXTRA_DIST=angel.conf lighttpd.conf mimetypes.conf service systemd \
default.html
# see src/modules/Makefile.am

12
contrib/systemd/lighttpd2.service

@ -0,0 +1,12 @@
[Unit]
Description=Lighttpd2
After=network.target
[Service]
Type=simple
ExecStart=/usr/sbin/lighttpd2 -c /etc/lighttpd2/angel.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save