[ "$1" = "configure" ] || exit 0
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
-# Load CARNet Tools
+# Load CARNET Tools
. /usr/share/carnet-tools/functions.sh
PKG=xinetd-cn
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=
# 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