aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
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