debian/ubuntu init script

Alex Bligh alex at alex.org.uk
Thu Aug 18 09:43:05 CEST 2011


Can I recommend you introduce something like the following patch
(taken straight from the ubuntu skeleton file), which will source
/etc/default/bird if it is present. This will remove the need
for me to fiddle with my /etc/init.d/bird file.

Similar considerations presumably apply for the bird6 init
file.

-- 
Alex Bligh

diff -u etc/init.d/bird{.orig,}
--- etc/init.d/bird.orig	2011-05-02 19:33:41.363090697 +0100
+++ etc/init.d/bird	2011-08-18 08:39:01.952013376 +0100
@@ -25,6 +25,9 @@
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0

+# Read configuration variable file if it is present
+[ -r /etc/default/$NAME ] && . /etc/default/$NAME
+
 # Load the VERBOSE setting and other rcS variables
 . /lib/init/vars.sh





More information about the Bird-users mailing list