summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/syslog
diff options
context:
space:
mode:
Diffstat (limited to 'src.etc/init.d/syslog')
-rwxr-xr-xsrc.etc/init.d/syslog32
1 files changed, 8 insertions, 24 deletions
diff --git a/src.etc/init.d/syslog b/src.etc/init.d/syslog
index 7d274ce..32e4bd6 100755
--- a/src.etc/init.d/syslog
+++ b/src.etc/init.d/syslog
@@ -1,35 +1,19 @@
-#!/bin/sh
+#!/bin/sh /etc/rc.common
SYSLOG_ROTATE_SIZE=65536
+START='40'
+STOP='70'
+
start()
{
- printf 'Starting syslog... '
- start-stop-daemon -S -q -n syslogd -x /sbin/syslogd -- \
+ log 'Starting syslog'
+ start-stop-daemon -S -q -x /sbin/syslogd -- \
-s "${SYSLOG_ROTATE_SIZE}"
- printf 'done.\n'
}
stop()
{
- printf 'Stopping syslog... '
- start-stop-daemon -K -q -n syslogd
- printf 'done.\n'
+ log 'Stopping syslog'
+ start-stop-daemon -K -q -p /var/run/syslogd.pid
}
-
-case "${1}" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- *)
- printf 'Usage: %s {start|stop|restart}\n' "${0}" >&2
- exit 1
- ;;
-esac