You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
422 B
24 lines
422 B
7 years ago
|
#!/bin/sh
|
||
|
# you can set options in /etc/profile.locale, variable SYSLOGD_OPTS
|
||
|
#
|
||
|
# without options and without /var/log (!), syslogd will simply
|
||
|
# log to the console. If /var/log/ exists, it will log to /var/log/messages
|
||
|
|
||
|
. /etc/init.d/globals
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
4 years ago
|
syslogd $SYSLOGD_OPTS
|
||
7 years ago
|
;;
|
||
|
stop)
|
||
|
killall syslogd
|
||
|
;;
|
||
|
restart)
|
||
|
$0 stop
|
||
|
$0 start
|
||
|
;;
|
||
|
*)
|
||
|
echo "[$BASENAME] Usage: $0 {start|restart|stop}"
|
||
|
;;
|
||
|
esac
|