#!/bin/sh # Source functions library source /etc/rc.d/init.d/functions case "$1" in start) cmd_run_log_box_warn "Starting inetd daemon" loadproc inetd ;; stop) cmd_run_log_box_warn "Stopping inetd daemon" killproc inetd ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc inetd ;; *) echo "Usage: $0 {start|stop|restart|status}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?