3 # /etc/init.d/xinetd -- script to start and stop xinetd.
5 # clear poisonned environment
8 if test -f /etc/default/xinetd; then
12 test -x /usr/sbin/xinetd || exit 0
14 case "$INETD_COMPAT" in
15 [Yy]*) XINETD_OPTS="$XINETD_OPTS -inetd_compat";;
20 if grep "^[^ *#]" /etc/xinetd.conf | grep -q 'rpc/'; then
21 if ! rpcinfo -u localhost portmapper >/dev/null 2>&1; then
23 echo "WARNING: portmapper inactive - RPC services unavailable!"
24 echo " Commenting out or removing the RPC services from"
25 echo " the /etc/xinetd.conf file will remove this message."
34 echo -n "Starting internet superserver: xinetd"
35 start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid $XINETD_OPTS
39 echo -n "Stopping internet superserver: xinetd"
40 start-stop-daemon --stop --signal 3 --quiet --oknodo --exec /usr/sbin/xinetd
44 echo -n "Reloading internet superserver configuration: xinetd"
45 start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd
49 echo "$0 force-reload: Force Reload is deprecated"
50 echo -n "Forcefully reloading internet superserver configuration: xinetd"
51 start-stop-daemon --stop --signal 1 --quiet --oknodo --exec /usr/sbin/xinetd
59 echo "Usage: /etc/init.d/xinetd {start|stop|reload|force-reload|restart}"