#!/bin/sh #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k #%start: 22 #%stop: 44 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case $1 in start) echo -e ${COLOREDSTAR}"Starting inetd server ..." loadproc /usr/sbin/inetd update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping inetd server ..." killproc inetd update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; reload) echo -e ${COLOREDSTAR}"Reloading inetd server ..." reloadproc /usr/sbin/inetd ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc inetd ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac