From 710c2cd5406ba8de1d91e85701a0ee6362207bd5 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Sat, 13 Nov 2021 15:11:50 +0100 Subject: [PATCH] Add example unit for systemd --- service/systemd/galago.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 service/systemd/galago.service diff --git a/service/systemd/galago.service b/service/systemd/galago.service new file mode 100644 index 0000000..2e77ba6 --- /dev/null +++ b/service/systemd/galago.service @@ -0,0 +1,17 @@ +# This unit file assumes that galago is installed in /root/galago/ +# It is good practice to change the user from root to something less priviledged and install galago somewhere else. + +[Unit] +Description=Galago image gallery server +After=network.target + +[Service] +Type=simple +Restart=always +RestartSec=1 +User=root +WorkingDirectory=/root/galago +ExecStart=/root/galago/Galago + +[Install] +WantedBy=multi-user.target \ No newline at end of file