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
|
2005-03-02 00:40:55 +00:00
|
|
|
# REQUIRE: cleanvar mountcritremote
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="newsyslog"
|
2005-03-02 00:40:55 +00:00
|
|
|
rcvar=`set_rcvar`
|
2001-06-16 07:16:14 +00:00
|
|
|
required_files="/etc/newsyslog.conf"
|
2005-10-28 16:55:38 +00:00
|
|
|
command="/usr/sbin/${name}"
|
2001-06-16 07:16:14 +00:00
|
|
|
start_cmd="newsyslog_start"
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
newsyslog_start()
|
|
|
|
{
|
2005-03-02 00:40:55 +00:00
|
|
|
echo -n "Creating and/or trimming log files:"
|
|
|
|
${command} ${rc_flags}
|
|
|
|
echo "."
|
2001-06-16 07:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|