summarylogtreecommitdiffstats
path: root/domoticz.service
diff options
context:
space:
mode:
Diffstat (limited to 'domoticz.service')
-rw-r--r--domoticz.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/domoticz.service b/domoticz.service
new file mode 100644
index 000000000000..63264e61a7e0
--- /dev/null
+++ b/domoticz.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Domoticz Daemon
+After=network-online.target
+
+[Service]
+User=http
+ExecStart=/opt/domoticz/domoticz -www 8080 -loglevel=1 -log /var/log/domoticz/domoticz.log -daemon &> /dev/null
+RestartSec=5
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target