From 62cf01e0161259ac9762125e89e1051008c2203c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 02 Jun 2014 20:02:43 -0400 Subject: Convert some service scripts to /etc/rc.common. --- (limited to 'src.etc/init.d/syslog') 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 -- cgit v0.9.1