tags 348263 +patch
thanks

On 06/01/16 01:36 +0200, Lars Wirzenius said ...
> postinst
> script runs /etc/init.d/dictd directly instead of using invoke-rc.d. If
> it used invoke-rc.d, which calls the policy-rc.d that piuparts sets up,
> it wouldn't even try to run the init.d script

Attached patch to fix this.

Giridhar

-- 
Y Giridhar Appaji Nag | http://www.appaji.net/
diff -Nur dict-jargon-4.4.4/debian/postinst 
dict-jargon-4.4.4.new/debian/postinst
--- dict-jargon-4.4.4/debian/postinst   2007-09-11 18:44:04.000000000 +0530
+++ dict-jargon-4.4.4.new/debian/postinst       2007-09-11 18:53:37.766613000 
+0530
@@ -7,7 +7,11 @@
 case "$1" in 
      configure)
      if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
-     if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart;fi
+     if which invoke-rc.d >/dev/null 2>&1; then
+          invoke-rc.d dictd restart
+     else
+          /etc/init.d/dictd restart
+     fi
      exit 0
      ;;
 
diff -Nur dict-jargon-4.4.4/debian/postrm dict-jargon-4.4.4.new/debian/postrm
--- dict-jargon-4.4.4/debian/postrm     2007-09-11 18:44:04.000000000 +0530
+++ dict-jargon-4.4.4.new/debian/postrm 2007-09-11 18:54:15.793690000 +0530
@@ -5,7 +5,11 @@
 case "$1" in 
     remove|purge)
      if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi
-     if [ -x /etc/init.d/dictd ]; then /etc/init.d/dictd restart;fi
+     if which invoke-rc.d >/dev/null 2>&1; then
+          invoke-rc.d dictd restart
+     else
+          /etc/init.d/dictd restart
+     fi
 
      exit 0
      ;;

Attachment: signature.asc
Description: Digital signature

Reply via email to