newsyslog revision 230099
1#!/bin/sh 2# 3# $FreeBSD: head/etc/rc.d/newsyslog 230099 2012-01-14 02:18:41Z dougb $ 4# 5 6# PROVIDE: newsyslog 7# REQUIRE: cleanvar mountcritremote 8 9. /etc/rc.subr 10 11name="newsyslog" 12rcvar="newsyslog_enable" 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" 27