2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $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()
|
|
|
|
{
|
2009-10-10 22:17:03 +00:00
|
|
|
check_startmsgs && echo -n 'Creating and/or trimming log files'
|
2005-03-02 00:40:55 +00:00
|
|
|
${command} ${rc_flags}
|
2009-10-10 22:17:03 +00:00
|
|
|
check_startmsgs && echo '.'
|
2001-06-16 07:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|