diff options
Diffstat (limited to 'src.etc/init.d/syslog')
-rwxr-xr-x | src.etc/init.d/syslog | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src.etc/init.d/syslog b/src.etc/init.d/syslog index 7d274ce..b39562f 100755 --- a/src.etc/init.d/syslog +++ b/src.etc/init.d/syslog @@ -1,35 +1,16 @@ -#!/bin/sh +#!/bin/sh /etc/rc.common SYSLOG_ROTATE_SIZE=65536 start() { - printf 'Starting syslog... ' + log 'Starting syslog' start-stop-daemon -S -q -n syslogd -x /sbin/syslogd -- \ -s "${SYSLOG_ROTATE_SIZE}" - printf 'done.\n' } stop() { - printf 'Stopping syslog... ' + log 'Stopping syslog' start-stop-daemon -K -q -n syslogd - printf 'done.\n' } - -case "${1}" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - *) - printf 'Usage: %s {start|stop|restart}\n' "${0}" >&2 - exit 1 - ;; -esac |