amd64 port: mainly on the pmap headers, identify_cpu and initcpu
[dragonfly/port-amd64.git] / etc / rc.d / newsyslog
blob895c21e17d6a8e9a6ba37314159605335e4eeaee
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.3 2005/11/19 21:47:32 swildner Exp $
8 # PROVIDE: newsyslog
9 # REQUIRE: mountcritremote sysdb
10 # BEFORE: syslogd SERVERS
12 . /etc/rc.subr
14 name="newsyslog"
15 rcvar=$name
16 required_files="/etc/newsyslog.conf"
17 start_cmd="newsyslog_start"
18 stop_cmd=":"
20 newsyslog_start()
22 echo -n "Trimming log files:"
23 /usr/bin/newsyslog -s $rc_flags
24 echo " done."
27 load_rc_config $name
28 run_rc_command "$1"