--- /etc/init.d/bird.dpkg-dist  2011-08-18 18:46:35.000000000 +0200
+++ /etc/init.d/bird    2011-08-23 12:27:06.927852152 +0200
@@ -16,7 +16,7 @@
 NAME=bird
 DAEMON=/usr/sbin/$NAME
 DAEMON_ARGS=""
-#PIDFILE=/var/run/$NAME.pid
+PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
 
 # Exit if the package is not installed
@@ -46,6 +46,8 @@
        start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \
                $DAEMON_ARGS \
                || return 2
+        ps -ef | grep "[b]ird$" | awk '{ print $2 }' > $PIDFILE
+
        # Add code here, if necessary, that waits for the process to be ready
        # to handle requests from services started subsequently which depend
        # on this one.  As a last resort, sleep for some time.
