From 98a2d80a5b196033b0f75d8b97cb05c6e4a9108e Mon Sep 17 00:00:00 2001 From: wbudic Date: Wed, 11 Aug 2021 11:32:56 +1000 Subject: [PATCH] init --- LifeLogLighttpd.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 LifeLogLighttpd.service diff --git a/LifeLogLighttpd.service b/LifeLogLighttpd.service new file mode 100644 index 0000000..b51f27e --- /dev/null +++ b/LifeLogLighttpd.service @@ -0,0 +1,14 @@ +[Unit] +Description=LifeLog Lighttpd Daemon +After=network-online.target + +[Service] +Type=simple +PIDFile=/run/lighttpd.pid +ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf +ExecStart=/usr/sbin/lighttpd -D -f /home/will/dev/LifeLog/lighttpd.conf +ExecReload=/bin/kill -USR1 $MAINPID +Restart=on-failure + +[Install] +WantedBy=multi-user.target -- 2.34.1