]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/newsyslog
This commit was generated by cvs2svn to compensate for changes in r172958,
[FreeBSD/FreeBSD.git] / etc / rc.d / newsyslog
1 #!/bin/sh
2 #
3 # $NetBSD: newsyslog,v 1.5 2002/03/24 15:51:26 lukem Exp $
4 # $FreeBSD$
5 #
6
7 # PROVIDE: newsyslog
8 # REQUIRE: cleanvar mountcritremote
9
10 . /etc/rc.subr
11
12 name="newsyslog"
13 rcvar=`set_rcvar`
14 required_files="/etc/newsyslog.conf"
15 command="/usr/sbin/${name}"
16 start_cmd="newsyslog_start"
17 stop_cmd=":"
18
19 newsyslog_start()
20 {
21         echo -n "Creating and/or trimming log files:"
22         ${command} ${rc_flags}
23         echo "."
24 }
25
26 load_rc_config $name
27 run_rc_command "$1"