summaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/midiplay.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/midiplay.service b/debian/midiplay.service
new file mode 100644
index 0000000..0b36218
--- /dev/null
+++ b/debian/midiplay.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Midiplay
+After=network.target
+
+[Service]
+Type=simple
+# Restart=always
+ExecStart=sh -c "cd /home/ernie/code/midiplay && make run-fcgi"
+
+# Restart once a week, maybe certificates have changed
+Restart=always
+RuntimeMaxSec=604800
+
+# webserver will lower privileges to www-data:www-data
+#User=www-data
+#Group=www-data
+
+[Install]
+WantedBy=multi-user.target