2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: newsyslog,v 1.5 2002/03/24 15:51:26 lukem Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: newsyslog
|
|
|
|
# REQUIRE: mountcritremote sysdb
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: syslogd SERVERS
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="newsyslog"
|
2002-06-13 22:14:37 +00:00
|
|
|
rcvar=$name
|
2001-06-16 07:16:14 +00:00
|
|
|
required_files="/etc/newsyslog.conf"
|
|
|
|
start_cmd="newsyslog_start"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
newsyslog_start()
|
|
|
|
{
|
|
|
|
echo -n "Trimming log files:"
|
2002-06-13 22:14:37 +00:00
|
|
|
/usr/bin/newsyslog -s $rc_flags
|
2001-06-16 07:16:14 +00:00
|
|
|
echo " done."
|
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|