tags 367762 +patch
thanks

On 06/05/18 00:21 +0300, Lars Wirzenius said ...
> As of Debian Policy Manual version 3.7.2, the use of invoke-rc.d to
> run init.d scripts has been made mandatory. Earlier, its use was

Patch attached to fix this.

Giridhar

-- 
Y Giridhar Appaji Nag | http://www.appaji.net/
diff -Nur gnudip-2.1.1/debian/postinst gnudip-2.1.1.new/debian/postinst
--- gnudip-2.1.1/debian/postinst        2007-09-12 10:58:38.000000000 +0530
+++ gnudip-2.1.1.new/debian/postinst    2007-09-12 11:14:12.632102000 +0530
@@ -247,7 +247,7 @@
 
 # Set up the init.d stuff...
 system ("update-rc.d gnudip defaults 99 49 >/dev/null") && die "update-rc.d";
-system ("/etc/init.d/gnudip start") && die "Cannot start gnudip";
+system ("if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d gnudip start; 
else /etc/init.d/gnudip start; fi") && die "Cannot start gnudip";
 
 exit 0;
 

Attachment: signature.asc
Description: Digital signature

Reply via email to