X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fbootscripts%2Fxinetd;h=566fcec2a81b41c2351a3d5e85ce691d4777a955;hb=3af763835d03474f8dd6fb7c352c8933502662e7;hp=75e1221f88273a1ef6f65911e7a1d4d562193afc;hpb=9e3f8101a7e4d974db8e9afeb9c90c13a43ae8d7;p=hvlinux.git diff --git a/stage3/bootscripts/xinetd b/stage3/bootscripts/xinetd index 75e1221..566fcec 100755 --- a/stage3/bootscripts/xinetd +++ b/stage3/bootscripts/xinetd @@ -3,32 +3,33 @@ # Source functions library source /etc/rc.d/init.d/functions -DAEMON=xinetd +DAEMON=/usr/sbin/xinetd +DAEMON_DESC="xinetd daemon" +DAEMON_OPTS="" case "$1" in start) - cmd_run_log_box_warn "Starting xinetd daemon" loadproc ${DAEMON} + cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_OPTS} ;; - + stop) - cmd_run_log_box_warn "Stopping xinetd daemon" killproc ${DAEMON} + cmd_run_log_box_warn "${DAEMON_DESC} stop" 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 $?