On 05/06/11 22:44, Simon Kelley wrote: > ACK. I'm surprised that invoke-rc.d isn't universal now, but if the > rules is there, we must obey.....
To be sure I went looking for documentation. I found policy ยง9.3.3.2 which gives this sample code snippet: if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d package <action> else /etc/init.d/package <action> fi The difference between this and my code is that mine tests for [ -x /etc/init.d/package ] first, so that the absence of the initscript doesn't yield an error. Policy's version may be better: an initscript may be a configuration file, but if it is absent then there is probably something very wrong. -- Thomas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org