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