cisti stari init.d
[amavisd-cn.git] / debian / prerm
index 6c4bcb7..4b4be03 100755 (executable)
@@ -1,6 +1,22 @@
 #!/bin/sh
+# prerm script for amavisd-cn
+#
+# see: dh_installdeb(1)
 
 set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package>
+#        <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -x
 
 . /usr/share/carnet-tools/functions.sh
@@ -20,8 +36,7 @@ if [ "$1" = remove ]; then
     cp-update -r $PKG $master_cf >&-
     del_postconf content_filter
     echo "Removed postfix configuration for ${PKG}."
-    if pgrep -u root -f /usr/lib/postfix/master >&- && \
-       [ -x /etc/init.d/postfix ] >&- ; then
+    if [ -x /etc/init.d/postfix ]; then
       if [ -x /usr/sbin/invoke-rc.d ]; then
         invoke-rc.d postfix restart
       else
@@ -34,3 +49,10 @@ if [ "$1" = remove ]; then
     newaliases
   fi
 fi
+
+exit 0
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#