summaryrefslogtreecommitdiff
path: root/unit/biboumi.service.cmake
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2016-01-13 19:44:58 +0100
committerFlorent Le Coz <louiz@louiz.org>2016-01-13 14:01:04 +0100
commit25475b60ab363299ddbe5e81ded8968b76838b44 (patch)
treea081ed2c3e99fa9c3f6727457fbe10fbdc86ba43 /unit/biboumi.service.cmake
parent4233e1f6538351e3bf3c15c88454455998b718e5 (diff)
downloadbiboumi-25475b60ab363299ddbe5e81ded8968b76838b44.tar.gz
biboumi-25475b60ab363299ddbe5e81ded8968b76838b44.tar.bz2
biboumi-25475b60ab363299ddbe5e81ded8968b76838b44.tar.xz
biboumi-25475b60ab363299ddbe5e81ded8968b76838b44.zip
Generate systemd file from template and make installs it and the conf
The unit file Type=, as well as the executable path should now be correct with a simple “make install”, whatever the install prefix and the DESTDIR values are. ref #3152
Diffstat (limited to 'unit/biboumi.service.cmake')
-rw-r--r--unit/biboumi.service.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/unit/biboumi.service.cmake b/unit/biboumi.service.cmake
new file mode 100644
index 0000000..0a9b76b
--- /dev/null
+++ b/unit/biboumi.service.cmake
@@ -0,0 +1,15 @@
+[Unit]
+Description=Biboumi, XMPP to IRC gateway
+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=10
+Restart=always
+User=nobody
+Group=nobody
+
+[Install]
+WantedBy=multi-user.target