]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - etc/rc.d/msgs
MFC r297314: rc.d: Make msgs a proper rc.d script.
[FreeBSD/stable/10.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 start_cmd="msgs_start"
13 stop_cmd=":"
14
15 msgs_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
24 load_rc_config $name
25 run_rc_command "$1"