232b6c98b4
systems are fully "ready to go". 'FILESYSTEMS' states: "This is a dummy dependency, for services which require file systems to be mounted before starting." However, we have 'var' which is was run after 'FILESYSTEMS' and can mount /var if it already isn't mounted. Furthermore, several scripts cannot use /var until 'cleanvar' has done its thing. Thus "FILESYSTEMS" hasn't really meant all critical file systems are fully usable.
27 lines
435 B
Bash
Executable File
27 lines
435 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: newsyslog
|
|
# REQUIRE: FILESYSTEMS mountcritremote
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="newsyslog"
|
|
rcvar="newsyslog_enable"
|
|
required_files="/etc/newsyslog.conf"
|
|
command="/usr/sbin/${name}"
|
|
start_cmd="newsyslog_start"
|
|
stop_cmd=":"
|
|
|
|
newsyslog_start()
|
|
{
|
|
check_startmsgs && echo -n 'Creating and/or trimming log files'
|
|
${command} ${rc_flags}
|
|
check_startmsgs && echo '.'
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|