diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-04 23:08:41 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-04 23:08:41 (EDT) |
commit | 9de16d22b0ac3cbb74793faa913db889d8151ee5 (patch) | |
tree | 0f6ed6fe2701368c036c0da9e72be362963d68b6 /src.etc/init.d/syslog | |
parent | 79d474a5fdc0ea8b9e05f5b68567dbbe9086e4ca (diff) | |
parent | b98d2d2ad1e341a6493fcd5531d605e8427665ca (diff) |
Merge branch 'feature/init-system-improvements'.
Diffstat (limited to 'src.etc/init.d/syslog')
-rwxr-xr-x | src.etc/init.d/syslog | 32 |
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 |