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
|
2012-09-11 05:04:59 +00:00
|
|
|
# REQUIRE: FILESYSTEMS mountcritremote
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="newsyslog"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="newsyslog_enable"
|
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"
|