From ec3c5801f14700dcbb60f60f663d28ff6cb528b4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 17 Jan 2025 21:29:11 +0100 Subject: Systemd service file --- debian/midiplay.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 debian/midiplay.service 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 -- cgit v1.2.3