#!/bin/sh # syslogd # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" DAEMON=/sbin/syslogd DAEMON_DESC="System log daemon" DAEMON_OPTS="" case "$1" in start) cmd_run_log_box_warn "${DAEMON_DESC} start" loadproc ${DAEMON} ${DAEMON_OPTS} ;; stop) cmd_run_log_box_warn "${DAEMON_DESC} stop" killproc ${DAEMON} ;; reload) cmd_run_nolog_box "${DAEMON_DESC} reload configuration file" reloadproc ${DAEMON} 1 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc ${DAEMON} ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?