mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-17 04:31:56 +02:00
Multiple quagga service files are causing the following type of message to appear during boot: /lib/systemd/system/zebra.service:10: PIDFile= references a path below legacy directory /var/run/, updating /var/run/quagga/zebra.pid → /run/quagga/zebra.pid; please update the unit file accordingly. Update the service files included as part of the recipe to use /run instead of /var/run as the PIDFile path. Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 lines
482 B
Desktop File
18 lines
482 B
Desktop File
[Unit]
|
|
Description=GNU Zebra routing manager
|
|
Wants=network.target
|
|
Before=network.target
|
|
ConditionPathExists=@SYSCONFDIR@/quagga/zebra.conf
|
|
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=-@SYSCONFDIR@/default/quagga
|
|
PIDFile=/run/quagga/zebra.pid
|
|
ExecStartPre=@BASE_SBINDIR@/ip route flush proto zebra
|
|
ExecStart=@SBINDIR@/zebra -d $zebra_options -f @SYSCONFDIR@/quagga/zebra.conf
|
|
ExecStopPost=@base_bindir@/rm -rf /run/quagga/zebra.pid
|
|
Restart=on-abort
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|