Deleted Added
sdiff udiff text old ( 179945 ) new ( 197947 )
full compact
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/newsyslog 197947 2009-10-10 22:17:03Z dougb $
4#
5
6# PROVIDE: newsyslog
7# REQUIRE: cleanvar mountcritremote
8
9. /etc/rc.subr
10
11name="newsyslog"
12rcvar=`set_rcvar`
13required_files="/etc/newsyslog.conf"
14command="/usr/sbin/${name}"
15start_cmd="newsyslog_start"
16stop_cmd=":"
17
18newsyslog_start()
19{
20 check_startmsgs && echo -n 'Creating and/or trimming log files'
21 ${command} ${rc_flags}
22 check_startmsgs && echo '.'
23}
24
25load_rc_config $name
26run_rc_command "$1"