summaryrefslogtreecommitdiff
path: root/units/lighttpd-lorry-controller-webapp.service
blob: 9586c432e6086f04ab618979b6730b3dbb918332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Install]
WantedBy=multi-user.target

[Unit]
Description=Lighttpd Web Server for Lorry Controller WEBAPP
After=network.target

[Service]
PermissionsStartOnly=true
User=lorry
Group=lorry
ExecStartPre=/usr/bin/install -d -o lorry -g lorry /run/lighttpd-lorry
ExecStart=/usr/sbin/lighttpd -f /etc/lighttpd/lorry-controller-webapp-httpd.conf -D
ExecStopPost=/bin/rm -r /run/lighttpd-lorry
Restart=always