2009-07-14 15:33:37 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
START=50
|
|
|
|
|
|
|
|
start() {
|
2009-08-18 14:49:11 +00:00
|
|
|
[ -f /etc/syslog-ng.conf ] || {
|
|
|
|
echo "/etc/syslog-ng.conf does not exist !";
|
2009-07-14 15:33:37 +00:00
|
|
|
exit 0;
|
|
|
|
};
|
|
|
|
[ -d /var/run ] || mkdir -p /var/run
|
|
|
|
[ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
killall syslog-ng
|
|
|
|
}
|
|
|
|
|
|
|
|
restart() {
|
|
|
|
stop
|
|
|
|
sleep 1
|
|
|
|
start
|
|
|
|
}
|
|
|
|
|
|
|
|
reload() {
|
|
|
|
kill -HUP `cat /var/run/syslog-ng.pid` &>/dev/null
|
|
|
|
}
|
|
|
|
|