-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: bind9
Version: 1:9.2.4-1
Severity: normal
File: /etc/init.d/bind9
Tags: patch


As the subject says, the init scripts does the wrong thing when called
with the force-reload command. Accordings to LSB, an init script, called
with that command should only do a restart if a reload isn't supported,
otherwise it should only do a reload. Note also that force-reload must
not start the service if it isn't already running (and your script
starts it).
The fix is easy:
Move the "force-reload|" pattern from the "restart" part to the "reload"
part of the case conditionals.

In other words, write:

    reload|force-reload)
        /usr/sbin/rndc reload
    ;;

    restart)
        $0 stop
        sleep 2
        $0 start
    ;;

instead of the old

    reload)
        /usr/sbin/rndc reload
    ;;

    restart|force-reload)
        $0 stop
        sleep 2
        $0 start
    ;;

Regards,
Sven

- -- System Information:
Debian Release: 3.1
Architecture: i386 (i586)
Kernel: Linux 2.6.8-486-voyage
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages bind9 depends on:
ii  adduser                     3.63         Add and remove users and groups
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared
libraries an
ii  libdns16                    1:9.2.4-1    DNS Shared Library used by BIND
ii  libisc7                     1:9.2.4-1    ISC Shared Library used by BIND
ii  libisccc0                   1:9.2.4-1    Command Channel Library
used by BI
ii  libisccfg0                  1:9.2.4-1    Config File Handling
Library used
ii  liblwres1                   1:9.2.4-1    Lightweight Resolver
Library used
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  netbase                     4.21         Basic TCP/IP networking system

- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTvyHDcs5RBTUBgsRAolAAJ40zAGdvGLieHGgs9OlAIKRQe13VQCfYYrN
mxVUZfWpbwbkGZBjYPJxTpo=
=60bi
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to