summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2018-09-12 20:28:53 +0200
committerOlivier Gayot <olivier.gayot@sigexec.com>2018-09-12 20:30:07 +0200
commitac823a80ff08010ed7a996fc5f2b82c784700703 (patch)
treea892dbae35d8ad00865a7136cf72ee920264a1b4
parentf5cbd11b466b7cfa3687a41cf5c2da07c01363ab (diff)
Add systemd service file
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--swiftstory.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/swiftstory.service b/swiftstory.service
new file mode 100644
index 0000000..b0e7d31
--- /dev/null
+++ b/swiftstory.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=SwiftStory game server
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+EnvironmentFile=-/etc/default/swiftstory
+ExecStart=/usr/bin/swiftstoryd
+Restart=on-failure
+Type=simple
+User=swiftstory
+
+[Install]
+WantedBy=multi-user.target
+Alias=swiftstoryd.service