ath(4): Really unbreak MODULES_WITH_WORLD building.
[dragonfly.git] / etc / rc.d / newsyslog
blob1c88cf294354b448d2df05ea9db10de720971934
1 #!/bin/sh
3 # $NetBSD: newsyslog,v 1.5 2002/03/24 15:51:26 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/newsyslog,v 1.2 2002/06/13 22:14:36 gordon Exp $
5 # $DragonFly: src/etc/rc.d/newsyslog,v 1.4 2008/01/20 11:16:47 swildner Exp $
8 # PROVIDE: newsyslog
9 # REQUIRE: mountcritremote sysdb
10 # BEFORE: syslogd SERVERS
12 . /etc/rc.subr
14 name="newsyslog"
15 rcvar=`set_rcvar`
16 required_files="/etc/newsyslog.conf"
17 command="/usr/sbin/${name}"
18 start_cmd="newsyslog_start"
19 stop_cmd=":"
21 newsyslog_start()
23 echo -n "Trimming log files:"
24 ${command} ${rc_flags}
25 echo "."
28 load_rc_config $name
29 run_rc_command "$1"