diff -u xinetd-2.3.14/debian/xinetd.init xinetd-2.3.14/debian/xinetd.init --- xinetd-2.3.14/debian/xinetd.init +++ xinetd-2.3.14/debian/xinetd.init @@ -9,14 +9,14 @@ test -x /usr/sbin/xinetd || exit 0 +. /lib/lsb/init-functions + checkportmap () { if grep "^[^ *#]" /etc/xinetd.conf | grep -q 'rpc/'; then if ! rpcinfo -u localhost portmapper >/dev/null 2>&1; then - echo - echo "WARNING: portmapper inactive - RPC services unavailable!" - echo " Commenting out or removing the RPC services from" - echo " the /etc/xinetd.conf file will remove this message." - echo + log_warning_msg "WARNING: portmapper inactive - RPC services unavailable!" + log_warning_msg " Commenting out or removing the RPC services from" + log_warning_msg " the /etc/xinetd.conf file will remove this message." fi fi } @@ -24,25 +24,25 @@ case "$1" in start) checkportmap - echo -n "Starting internet superserver: xinetd" + log_daemon_msg "Starting internet superserver" "xinetd" start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid $XINETD_OPTS - echo "." + log_end_msg $? ;; stop) - echo -n "Stopping internet superserver: xinetd" + log_daemon_msg "Stopping internet superserver" "xinetd" start-stop-daemon --stop --signal 3 --quiet --oknodo --exec /usr/sbin/xinetd - echo "." + log_end_msg $? ;; reload) - echo -n "Reloading internet superserver configuration: xinetd" + log_daemon_msg "Reloading internet superserver configuration" "xinetd" start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd - echo "." + log_end_msg $? ;; force-reload) - echo "$0 force-reload: Force Reload is deprecated" - echo -n "Forcefully reloading internet superserver configuration: xinetd" + log_warning_msg "Force Reload is deprecated" + log_daemon_msg "Forcefully reloading internet superserver configuration" "xinetd" start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd - echo "." + log_end_msg $? ;; restart) $0 stop diff -u xinetd-2.3.14/debian/control xinetd-2.3.14/debian/control --- xinetd-2.3.14/debian/control +++ xinetd-2.3.14/debian/control @@ -7,7 +7,7 @@ Package: xinetd Architecture: any -Depends: ${shlibs:Depends}, netbase +Depends: ${shlibs:Depends}, netbase, lsb-base (>= 3.0-3) Recommends: sysklogd | system-log-daemon, logrotate Description: replacement for inetd with many enhancements xinetd has access control mechanisms, extensive logging capabilities,