xref: /freebsd/libexec/rc/rc.d/newsyslog (revision 8881d206f4e68b564c2c5f50fc717086fc3e827a)
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	check_startmsgs && echo -n 'Creating and/or trimming log files'
22	${command} ${rc_flags}
23	check_startmsgs && echo '.'
24}
25
26load_rc_config $name
27run_rc_command "$1"
28