freebsd-skq/etc/rc.d/newsyslog
David E. O'Brien 9d62501fd8 Import the NetBSD 1.5 RC system.
Note that `rc' and `rc.shutdown' could not be imported because we already
have files with those names.
2001-06-16 07:16:14 +00:00

27 lines
397 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD$
#
# PROVIDE: newsyslog
# REQUIRE: mountcritremote sysdb
# BEFORE: syslogd
. /etc/rc.subr
name="newsyslog"
required_files="/etc/newsyslog.conf"
start_precmd="checkyesno newsyslog"
start_cmd="newsyslog_start"
stop_cmd=":"
newsyslog_start()
{
echo -n "Trimming log files:"
/usr/bin/newsyslog -s $newsyslog_flags
echo " done."
}
load_rc_config $name
run_rc_command "$1"