X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=32a67f3b82f6a9a8d2a3b4e9f0b32c2e974f3207;hb=8e31d1a9acca67737e49f72591cef5f222a9b986;hp=f620ce59ec9079388728c779997058eae0fc9ff6;hpb=f802c969b4b7d7368fe6e8e286e7a133c68f550f;p=xinetd-cn.git diff --git a/debian/postinst b/debian/postinst index f620ce5..32a67f3 100644 --- a/debian/postinst +++ b/debian/postinst @@ -5,7 +5,7 @@ set -e [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx -# Load CARNet Tools +# Load CARNET Tools . /usr/share/carnet-tools/functions.sh PKG=xinetd-cn @@ -13,7 +13,7 @@ CONF=/etc/xinetd.conf INETDCONF=/etc/inetd.conf DEFAULT=/etc/default/xinetd BACKUPDIR=/var/backups/xinetd-cn -XCONV_TOOL=/usr/sbin/xconv.pl +XCONV_TOOL=/usr/bin/xconv.pl need_restart=0 temp_files= @@ -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