Azuriran Standards-Version, manje ciscenje debian/postinst.
[xinetd-cn.git] / debian / postinst
index f620ce5..b6c27cf 100644 (file)
@@ -268,22 +268,13 @@ fi
 # Restart xinetd if needed
 #
 if [ $need_restart -eq 1 ]; then
-    if [ -x "/etc/init.d/xinetd" ]; then
-        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-            invoke-rc.d xinetd restart || exit $?
-        else
-            /etc/init.d/xinetd restart || exit $?
-        fi
-    fi
+    service xinetd restart || exit $?
 fi
 
 # Mail root
 #
 cp_mail "$PKG"
 
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
 #DEBHELPER#
 
 exit 0