Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/msgs
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: msgs | # PROVIDE: msgs | ||||
# REQUIRE: LOGIN | # REQUIRE: LOGIN | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="msgs" | name="msgs" | ||||
desc="Make a bounds file for msgs(1)" | |||||
start_cmd="msgs_start" | start_cmd="msgs_start" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
msgs_start() | msgs_start() | ||||
{ | { | ||||
# Make a bounds file for msgs(1) if there isn't one already | # Make a bounds file for msgs(1) if there isn't one already | ||||
# | # | ||||
if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then | if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then | ||||
echo 0 > /var/msgs/bounds | echo 0 > /var/msgs/bounds | ||||
fi | fi | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
run_rc_command "$1" | run_rc_command "$1" |