NetBSD/etc/rc.d/newsyslog

27 lines
442 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: newsyslog,v 1.1 2000/09/21 10:38:04 ad Exp $
#
# 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"