Skip to contentSkip to conversation

quagga: do not set PIDFile in service files

PATCH New Yi Zhao 1 participant 1 message Mar 10, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 quagga: do not set PIDFile in service files

The systemd can not open the pid file because it is locked by quagga daemon.

Fixes:

$ systemctl status ospf6d.service
Feb 25 05:53:26 intel-x86-64 systemd[1]: Starting OSPF routing daemon for IPv6...
Feb 25 05:53:26 intel-x86-64 systemd[1]: ospf6d.service: Can't open PID file /run/quagga/ospf6d.pid (yet?) after start: Operation not permitted
Feb 25 05:53:26 intel-x86-64 systemd[1]: Started OSPF routing daemon for IPv6.
---
 meta-networking/recipes-protocols/quagga/files/bgpd.service   | 1 -
 meta-networking/recipes-protocols/quagga/files/ospf6d.service | 1 -
 meta-networking/recipes-protocols/quagga/files/ospfd.service  | 1 -
 meta-networking/recipes-protocols/quagga/files/ripd.service   | 1 -
 meta-networking/recipes-protocols/quagga/files/ripngd.service | 1 -
 meta-networking/recipes-protocols/quagga/files/zebra.service  | 1 -
 6 files changed, 6 deletions(-)
meta-networking/recipes-protocols/quagga/files/bgpd.service +0 -1
index c1021fbd7..818b59cb2 100644
@@ -7,7 +7,6 @@ ConditionPathExists=@SYSCONFDIR@/quagga/bgpd.conf
 [Service]
 Type=forking
 EnvironmentFile=-@SYSCONFDIR@/default/quagga
-PIDFile=/run/quagga/bgpd.pid
 ExecStart=@SBINDIR@/bgpd -d $bgpd_options -f @SYSCONFDIR@/quagga/bgpd.conf
 ExecStopPost=@base_bindir@/rm -rf /run/quagga/bgpd.pid
 Restart=on-abort
meta-networking/recipes-protocols/quagga/files/ospf6d.service +0 -1
index 99d0e6dca..50645fe2a 100644
@@ -7,7 +7,6 @@ ConditionPathExists=@SYSCONFDIR@/quagga/ospf6d.conf
 [Service]
 Type=forking
 EnvironmentFile=-@SYSCONFDIR@/default/quagga
-PIDFile=/run/quagga/ospf6d.pid
 ExecStart=@SBINDIR@/ospf6d -d $ospf6d_options -f @SYSCONFDIR@/quagga/ospf6d.conf
 ExecStopPost=@base_bindir@/rm -rf /run/quagga/ospf6d.pid
 Restart=on-abort
meta-networking/recipes-protocols/quagga/files/ospfd.service +0 -1
index fe8343be1..2cab1cd14 100644
@@ -7,7 +7,6 @@ ConditionPathExists=@SYSCONFDIR@/quagga/ospfd.conf
 [Service]
 Type=forking
 EnvironmentFile=-@SYSCONFDIR@/default/quagga
-PIDFile=/run/quagga/ospfd.pid
 ExecStart=@SBINDIR@/ospfd -d $ospfd_options -f @SYSCONFDIR@/quagga/ospfd.conf
 ExecStopPost=@base_bindir@/rm -rf /run/quagga/ospfd.pid
 Restart=on-abort
meta-networking/recipes-protocols/quagga/files/ripd.service +0 -1
index 7af65ca8a..2c824318a 100644
@@ -7,7 +7,6 @@ ConditionPathExists=@SYSCONFDIR@/quagga/ripd.conf
 [Service]
 Type=forking
 EnvironmentFile=-@SYSCONFDIR@/default/quagga
-PIDFile=/run/quagga/ripd.pid
 ExecStart=@SBINDIR@/ripd -d $ripd_options -f @SYSCONFDIR@/quagga/ripd.conf
 ExecStopPost=@base_bindir@/rm -rf /run/quagga/ripd.pid
 Restart=on-abort
meta-networking/recipes-protocols/quagga/files/ripngd.service +0 -1
index 9305f86be..c3555b345 100644
@@ -7,7 +7,6 @@ ConditionPathExists=@SYSCONFDIR@/quagga/ripngd.conf
 [Service]
 Type=forking
 EnvironmentFile=-@SYSCONFDIR@/default/quagga
-PIDFile=/run/quagga/ripngd.pid
 ExecStart=@SBINDIR@/ripngd -d $ripngd_options -f @SYSCONFDIR@/quagga/ripngd.conf
 ExecStopPost=@base_bindir@/rm -rf /run/quagga/ripngd.pid
 Restart=on-abort
meta-networking/recipes-protocols/quagga/files/zebra.service +0 -1
index e34af7242..9186041ae 100644
@@ -7,7 +7,6 @@ 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
Signature · 1 line
2.25.1