From 1787fb824c6f6a1ced0a814706421b9667a29d59 Mon Sep 17 00:00:00 2001 From: C-xC-c Date: Wed, 11 Dec 2019 13:33:44 +0000 Subject: [PATCH] Add example systemd service --- Environment/bantflags.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Environment/bantflags.service diff --git a/Environment/bantflags.service b/Environment/bantflags.service new file mode 100644 index 0000000..dfab55a --- /dev/null +++ b/Environment/bantflags.service @@ -0,0 +1,16 @@ +[Unit] +Description=bantflags backend + +[Service] +# Set to the location of the application +WorkingDirectory=/etc/bantflags +ExecStart=/usr/bin/dotnet /etc/bantflags/BantFlags.dll +Restart=always +# restarts 10 seconds after it goes bang +RestartSec=10 +KillSignal=SIGINT +SyslogIdentifier=bantflags +User=www-data + +[Install] +WantedBy=multi-user.target \ No newline at end of file