NetBSD/etc/rc.d/newsyslog

28 lines
454 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: newsyslog,v 1.2 2001/08/18 19:50:19 ad Exp $
#
# PROVIDE: newsyslog
# REQUIRE: mountcritremote sysdb
# BEFORE: syslogd
. /etc/rc.subr
name="newsyslog"
rcvar=$name
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"