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