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