diff options
Diffstat (limited to 'units/lighttpd-lorry-controller-webapp.service')
-rw-r--r-- | units/lighttpd-lorry-controller-webapp.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/units/lighttpd-lorry-controller-webapp.service b/units/lighttpd-lorry-controller-webapp.service new file mode 100644 index 0000000..0c04fac --- /dev/null +++ b/units/lighttpd-lorry-controller-webapp.service @@ -0,0 +1,12 @@ +[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 |