summaryrefslogtreecommitdiff
path: root/unit/biboumi.service
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-27 21:39:28 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-30 01:04:02 +0200
commite01e34db22eb770efd0cb752bcfe4aad28157c93 (patch)
treea6a5a2469c80a655af65300994faeb50cb9406b7 /unit/biboumi.service
parent5a43ac9a0d161b12c8745e3374983482049798a6 (diff)
downloadbiboumi-e01e34db22eb770efd0cb752bcfe4aad28157c93.tar.gz
biboumi-e01e34db22eb770efd0cb752bcfe4aad28157c93.tar.bz2
biboumi-e01e34db22eb770efd0cb752bcfe4aad28157c93.tar.xz
biboumi-e01e34db22eb770efd0cb752bcfe4aad28157c93.zip
Provide an example unit file for systemd
Diffstat (limited to 'unit/biboumi.service')
-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