xref: /freebsd/libexec/rc/rc.d/newsyslog (revision ca6a6373bdaed010d6cbfb27f7249ae96009409d)
1#!/bin/sh
2#
3#
4
5# PROVIDE: newsyslog
6# REQUIRE: FILESYSTEMS mountcritremote
7
8. /etc/rc.subr
9
10name="newsyslog"
11desc="Logfile rotation"
12rcvar="newsyslog_enable"
13required_files="/etc/newsyslog.conf"
14command="/usr/sbin/${name}"
15start_cmd="newsyslog_start"
16stop_cmd=":"
17
18newsyslog_start()
19{
20	startmsg -n 'Creating and/or trimming log files'
21	${command} ${rc_flags}
22	startmsg '.'
23}
24
25load_rc_config $name
26run_rc_command "$1"
27