summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/newsyslog
blob: a842e4036b2330c1be9c1a60fb2088c2654e2b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# $NetBSD$
#

# PROVIDE: newsyslog
# REQUIRE: mountcritremote sysdb
# BEFORE: syslogd

. /etc/rc.subr

name="newsyslog"
required_files="/etc/newsyslog.conf"
start_precmd="checkyesno newsyslog"
start_cmd="newsyslog_start"
stop_cmd=":"

newsyslog_start()
{
	echo -n "Trimming log files:"
	/usr/bin/newsyslog -s $newsyslog_flags
	echo " done."
}

load_rc_config $name
run_rc_command "$1"
OpenPOWER on IntegriCloud