On Wed, Aug 26, 2009 at 02:46:08AM +0100, Francis Russell wrote: > Pierre Habouzit wrote: > > On Tue, Aug 25, 2009 at 10:17:06PM +0100, Francis Russell wrote: > >> Package: nsd3 > >> Version: 3.2.2-1 > >> Severity: normal > >> > >> > >> It appears the notify, rebuild and update options in the nsd3 init.d > script have no effect. > > > > You're simply wrong. They produce no output to the terminal when they > > work, which is the desired effect. > > Yes, I do understand that a working call to nsdc rebuild produces no > output. Of course, the incorrect behaviour might be specific to my > system. Here's what I'm seeing: > > f...@callisto:~$ stat -c "%z" /var/lib/nsd3/nsd.db && sudo > /etc/init.d/nsd3 rebuild; stat -c "%z" /var/lib/nsd3/nsd.db > 2009-08-26 01:47:10.000000000 +0100 > 2009-08-26 01:47:10.000000000 +0100
I cannot reproduce: $ stat -c "%z" /var/lib/nsd3/nsd.db; \ sleep 1; \ /etc/init.d/nsd3 rebuild; \ stat -c "%z" /var/lib/nsd3/nsd.db 2009-08-26 10:50:33.000000000 +0200 2009-08-26 10:51:43.000000000 +0200 This is with 3.2.0-1 but I've not changed the init script since so... > > No, it doesn't "fix" it, it produce useless output, making such a > > command unsuitable for use from cron or similar. > > I'm confused. *Every* init script I've ever seen, even those with > non-standard options produces formatted output specifically for the > benefit of the user for debugging purposes. If someone doesn't want > output in a cron job, they typically divert it to /dev/null. In > addition, they could simply call nsdc directly, which produces no output. The purpose of the extensions here is to be sure nsdc rebuild and so on are called with the proper _user_ (using 'nsd' and not root) which people often forget, it's merely a helper. I've since patched "nsdc" in Debian so that it drops privileges properly for rebuild/notify/... so it's not really a concern nowadays, and I could drop the extensions from the init script. I did not thinking some poeple may use them, but I don't intend to make them evolve nowadays. -- Intersec <http://www.intersec.com> Pierre Habouzit <[email protected]> Tél : +33 (0)1 5570 3346 Mob : +33 (0)6 1636 8131 Fax : +33 (0)1 5570 3332 37 Rue Pierre Lhomme 92400 Courbevoie -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

