summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unit/biboumi.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/unit/biboumi.service b/unit/biboumi.service
new file mode 100644
index 0000000..579ac4e
--- /dev/null
+++ b/unit/biboumi.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Biboumi, XMPP to IRC gateway
+After=network.target
+
+[Service]
+Type=notify
+ExecStart=/usr/bin/biboumi /etc/biboumi/biboumi.cfg
+ExecReload=/bin/kill -s USR1 $MAINPID
+ExecStop=/bin/kill -s INT $MAINPID
+WatchdogSec=10
+Restart=always
+
+[Install]
+WantedBy=multi-user.target