#!/bin/sh # /etc/rc.d/rc.inetd # # control the inetd, the BSD Internet super-daemon. # # you might like to check-out xinetd # # colours by (or ;o) # Start inetd: inetd_start() { if [ -x /usr/sbin/inetd ]; then echo "Starting Internet super-server daemon:  /usr/sbin/inetd" /usr/sbin/inetd fi } # Stop inetd: inetd_stop() { killall inetd } # Restart inetd: inetd_restart() { inetd_stop sleep 1 inetd_start } case "$1" in start) inetd_start ;; stop) inetd_stop ;; restart) inetd_restart ;; *) echo "usage $0 start|stop|restart" esac