aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2017-11-03 01:14:37 +0100
committerJokler <jokler.contact@gmail.com>2017-11-03 04:20:14 +0100
commit4c18f59ac4dfe1372374ecc63a5976ad58a5e272 (patch)
tree2d80aca57c46112183d016d834f8568369e70011 /systemd
parent8e573c5a7a6747dd3f01c3ed97c88a3c5a57d7ec (diff)
downloadfrippy-4c18f59ac4dfe1372374ecc63a5976ad58a5e272.tar.gz
frippy-4c18f59ac4dfe1372374ecc63a5976ad58a5e272.zip
Add systemd service
Diffstat (limited to 'systemd')
-rw-r--r--systemd/frippy.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/frippy.service b/systemd/frippy.service
new file mode 100644
index 0000000..1fb6cd7
--- /dev/null
+++ b/systemd/frippy.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=IRC Bot written in Rust
+After=network-online.target
+
+[Service]
+Type=simple
+User=frippy
+Group=frippy
+WorkingDirectory=/etc/frippy
+ExecStart=/usr/bin/frippy
+Restart=always
+RestartSec=30
+
+[Install]
+WantedBy=multi-user.target