diff options
author | Florent Le Coz <louiz@louiz.org> | 2016-01-13 19:44:58 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2016-01-13 14:01:04 +0100 |
commit | 25475b60ab363299ddbe5e81ded8968b76838b44 (patch) | |
tree | a081ed2c3e99fa9c3f6727457fbe10fbdc86ba43 /unit | |
parent | 4233e1f6538351e3bf3c15c88454455998b718e5 (diff) | |
download | biboumi-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')
-rw-r--r-- | unit/biboumi.service.cmake (renamed from unit/biboumi.service) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unit/biboumi.service b/unit/biboumi.service.cmake index 59001a6..0a9b76b 100644 --- a/unit/biboumi.service +++ b/unit/biboumi.service.cmake @@ -3,8 +3,8 @@ Description=Biboumi, XMPP to IRC gateway After=network.target [Service] -Type=notify -ExecStart=/usr/bin/biboumi /etc/biboumi/biboumi.cfg +Type=${SYSTEMD_SERVICE_TYPE} +ExecStart=${CMAKE_INSTALL_PREFIX}/bin/biboumi /etc/biboumi/biboumi.cfg ExecReload=/bin/kill -s USR1 $MAINPID WatchdogSec=10 Restart=always |