summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/msgs
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/msgs')
-rwxr-xr-xetc/rc.d/msgs22
1 files changed, 17 insertions, 5 deletions
diff --git a/etc/rc.d/msgs b/etc/rc.d/msgs
index 6031acc..8bcc26c 100755
--- a/etc/rc.d/msgs
+++ b/etc/rc.d/msgs
@@ -6,8 +6,20 @@
# PROVIDE: msgs
# REQUIRE: LOGIN
-# 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
- echo 0 > /var/msgs/bounds
-fi
+. /etc/rc.subr
+
+name="msgs"
+start_cmd="msgs_start"
+stop_cmd=":"
+
+msgs_start()
+{
+ # 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
+ echo 0 > /var/msgs/bounds
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud