[packages/bird] Rel 3; use pid file

arekm arekm at pld-linux.org
Wed Mar 18 18:24:58 CET 2026


commit 71f59853dd516462e2726fb740ec8b6c91e95eb3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Mar 18 18:24:47 2026 +0100

    Rel 3; use pid file

 bird.init | 8 ++++----
 bird.spec | 6 ++++--
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/bird.spec b/bird.spec
index e5e222a..b9f4d78 100644
--- a/bird.spec
+++ b/bird.spec
@@ -6,7 +6,7 @@ Summary:	The BIRD Internet Routing Daemon
 Summary(pl.UTF-8):	Demon BIRD Internetowego Routingu Dynamicznego
 Name:		bird
 Version:	3.2.0
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		Networking/Daemons
 Source0:	https://bird.nic.cz/download/%{name}-%{version}.tar.gz
@@ -78,7 +78,8 @@ cp -f /usr/share/automake/config.* tools
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,%{_sbindir}} \
-	$RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}}
+	$RPM_BUILD_ROOT{%{systemdunitdir},%{systemdtmpfilesdir}} \
+	$RPM_BUILD_ROOT/var/run/bird
 
 install bird $RPM_BUILD_ROOT%{_sbindir}
 install birdc $RPM_BUILD_ROOT%{_sbindir}
@@ -126,5 +127,6 @@ fi
 %attr(754,root,root) /etc/rc.d/init.d/bird
 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bird
 %attr(640,root,bird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bird.conf
+%dir %attr(755,bird,bird) /var/run/bird
 %{systemdunitdir}/bird.service
 %{systemdtmpfilesdir}/bird.conf
diff --git a/bird.init b/bird.init
index 3120eae..ed25e54 100644
--- a/bird.init
+++ b/bird.init
@@ -44,7 +44,7 @@ case "$1" in
 	if [ ! -f /var/lock/subsys/bird ]; then
 		checkconfig
 		msg_starting bird
-		daemon ${SERVICE_RUN_NICE_LEVEL} /usr/sbin/bird -u bird -g bird $BIRD_OPTS
+		daemon ${SERVICE_RUN_NICE_LEVEL} /usr/sbin/bird -u bird -g bird -P /var/run/bird/bird.pid $BIRD_OPTS
 		RETVAL=$?
 		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bird
 	else
@@ -54,7 +54,7 @@ case "$1" in
   stop)
 	if [ -f /var/lock/subsys/bird ]; then
 		msg_stopping bird
-		killproc bird
+		killproc --pidfile /var/run/bird/bird.pid bird
 		rm -f /var/lock/subsys/bird
 	else
 		msg_not_running bird
@@ -70,7 +70,7 @@ case "$1" in
 	if [ -f /var/lock/subsys/bird ]; then
 		checkconfig
 		msg_reloading bird
-		killproc bird -HUP
+		killproc --pidfile /var/run/bird/bird.pid bird -HUP
 		RETVAL=$?
 	else
 		msg_not_running bird
@@ -81,7 +81,7 @@ case "$1" in
 	checkconfig
 	;;
   status)
-	status bird
+	status --pidfile /var/run/bird/bird.pid bird
 	exit $?
 	;;
   *)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bird.git/commitdiff/71f59853dd516462e2726fb740ec8b6c91e95eb3



More information about the pld-cvs-commit mailing list