debian/ubuntu init script

Alex Bligh alex at alex.org.uk
Sat Sep 3 13:37:55 CEST 2011



--On 18 August 2011 13:44:52 +0100 Alex Bligh <alex at alex.org.uk> wrote:

> --On 18 August 2011 11:48:25 +0200 Ondrej Zajicek
> <santiago at crfreenet.org> wrote:
>
>> On Thu, Aug 18, 2011 at 08:43:05AM +0100, Alex Bligh wrote:
>>> 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.
>>
>> Fixed.
>
> Thanks. If you could do bird6 too, that would be fantastic.

I can't find where in the repo these are, but it doesn't
seem to have made it to debian unless I am being dumb - here's
a direct patch if that helps

-- 
Alex Bligh

--- debian/bird.init.d.orig	2011-09-03 12:31:10.318508640 +0100
+++ debian/bird.init.d	2011-08-18 13:30:20.818510228 +0100
@@ -22,6 +22,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

--- debian/bird6.init.d.orig	2011-09-03 12:31:10.318508640 +0100
+++ debian/bird6.init.d	2011-08-18 13:30:20.818510228 +0100
@@ -22,6 +22,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