diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-17 21:29:11 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-17 21:29:11 +0100 |
commit | ec3c5801f14700dcbb60f60f663d28ff6cb528b4 (patch) | |
tree | dc2eaa6e287f77adf49807846c4324935940e6de /debian | |
parent | bb56941f6b61529dd770475296d093727c68fdc6 (diff) |
Systemd service file
Diffstat (limited to 'debian')
-rw-r--r-- | debian/midiplay.service | 19 |
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 |