xref: /freebsd/libexec/rc/rc.d/msgs (revision 2008043f386721d58158e37e0d7e50df8095942d)
1#!/bin/sh
2#
3#
4
5# PROVIDE: msgs
6# REQUIRE: LOGIN
7
8. /etc/rc.subr
9
10name="msgs"
11desc="Make a bounds file for msgs(1)"
12start_cmd="msgs_start"
13stop_cmd=":"
14
15msgs_start()
16{
17	# Make a bounds file for msgs(1) if there isn't one already
18	#
19	if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then
20		echo 0 > /var/msgs/bounds
21	fi
22}
23
24load_rc_config $name
25run_rc_command "$1"
26