mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-20 04:48:21 +00:00
36 lines
454 B
Bash
Executable File
36 lines
454 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/sysklogd
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
PROG=/usr/sbin/syslogd
|
|
OPTS=-ss
|
|
PID=/var/run/syslogd.pid
|
|
|
|
case "$1" in
|
|
start)
|
|
msg "Starting system log daemon..."
|
|
start_daemon $PROG $OPTS -p $PID
|
|
;;
|
|
stop)
|
|
msg "Stopping system log daemon..."
|
|
stop_daemon $PROG -p $PID
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
status)
|
|
status_daemon $PROG
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [start|stop|restart|status]"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End of file
|