xref: /freebsd/libexec/rc/rc.d/newsyslog (revision f99f0ee14e3af81c23150a6a340259ca8a33d01a)
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
26
27# doesn't make sense to run in a svcj: needs to send signals outside the svcj
28newsyslog_svcj="NO"
29
30run_rc_command "$1"
31