summaryrefslogtreecommitdiff
path: root/unit/biboumi.service.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'unit/biboumi.service.cmake')
-rw-r--r--unit/biboumi.service.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/unit/biboumi.service.cmake b/unit/biboumi.service.cmake
new file mode 100644
index 0000000..150045b
--- /dev/null
+++ b/unit/biboumi.service.cmake
@@ -0,0 +1,16 @@
+[Unit]
+Description=Biboumi, XMPP to IRC gateway
+Documentation=man:biboumi(1) https://biboumi.louiz.org
+After=network.target
+
+[Service]
+Type=${SYSTEMD_SERVICE_TYPE}
+ExecStart=${CMAKE_INSTALL_PREFIX}/bin/biboumi /etc/biboumi/biboumi.cfg
+ExecReload=/bin/kill -s USR1 $MAINPID
+WatchdogSec=${WATCHDOG_SEC}
+Restart=always
+User=${SERVICE_USER}
+Group=${SERVICE_GROUP}
+
+[Install]
+WantedBy=multi-user.target