From 4bcaab53f64609fd08b102919c1282361abc0e73 Mon Sep 17 00:00:00 2001 From: gallery2 Date: Tue, 26 Jan 2021 15:18:07 +0000 Subject: [PATCH] create a Systemd service file. This is so the program can run unattended. It is a move away from the '@reboot' cronjob used previously. Note this will need to be copied into the appropriate loction of the system if you have just cloned the repository. Search for Systemd docuementation on the interwebs or in the repositories README (hopefully it's been added after this commmit). --- relay.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 relay.service diff --git a/relay.service b/relay.service new file mode 100644 index 0000000..95be2d3 --- /dev/null +++ b/relay.service @@ -0,0 +1,16 @@ +[Unit] +Description=Relay service for Return to Ritherdon project by Nicola Ellis +After=network.service + +[Service] +Type=simple +ExecStart=bash /home/rtrp/repos/relay/startup.sh +WorkingDirectory=/home/rtrp/repos/relay +StandardOutput=inherit +StandardError=inherit +Restart=always +RestartSec=60 +user=rtrp + +[Install] +WantedBy=multi-user.target