1
0
forked from bip/bip
bip/systemd/bip.service
Pierre-Louis Bonicoli 722ed9a8da
ENABLED might not be defined: use a default value
For example using ENABLED in /etc/default/bip is DEPRECATED in Debian.

Closes #618.
2021-10-11 18:06:27 +02:00

24 lines
429 B
Desktop File

[Unit]
Description=Bip IRC Proxy
Requires=network.target
Wants=bip-config.service
After=bip-config.service
[Service]
EnvironmentFile=/run/sysconfig/bip
Type=forking
User=bip
Group=bip
ExecStartPre=/bin/sh -c '[ ${ENABLED:-1} != 0 ]'
ExecStart=/usr/bin/bip $DAEMON_ARGS
ExecReload=/bin/kill -HUP $MAINPID
RuntimeDirectory=bip
RuntimeDirectoryMode=0750
KillMode=process
Restart=on-abnormal
[Install]
WantedBy=multi-user.target