18 lines
403 B
SYSTEMD
18 lines
403 B
SYSTEMD
|
[Unit]
|
||
|
Description=Quagga %i routing daemon
|
||
|
ConditionFileIsExecutable=/usr/sbin/%i
|
||
|
Wants=quagga@zebra.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
EnvironmentFile=/etc/default/quagga-%i
|
||
|
PrivateTmp=true
|
||
|
# Systemd doesn't like having %i in the executable path.
|
||
|
ExecStart=/usr/bin/env /usr/sbin/%i $OPTS -f /etc/quagga/%i.conf
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|