3 # /etc/rc.d/sysklogd: start/stop syslog and klog daemons
6 SSD
=/sbin
/start-stop-daemon
9 SLOG_PID
=/var
/run
/syslogd.pid
10 KLOG_PID
=/var
/run
/klogd.pid
14 $SSD --status --pidfile $2
16 0) echo "$1 is running with pid $(cat $2)" ;;
17 1) echo "$1 is not running but the pid file $2 exists" ;;
18 3) echo "$1 is not running" ;;
19 4) echo "Unable to determine the program status" ;;
25 $SSD --start --pidfile $SLOG_PID --exec $SLOG
26 $SSD --start --pidfile $KLOG_PID --exec $KLOG -- -c4
29 $SSD --stop --retry 10 --pidfile $SLOG_PID
30 $SSD --stop --retry 10 --pidfile $KLOG_PID
37 print_status
$SLOG $SLOG_PID
38 print_status
$KLOG $KLOG_PID
41 echo "usage: $0 [start|stop|restart|status]"