summaryrefslogtreecommitdiff
path: root/etc/rc.local
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2010-10-26 20:56:04 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2010-10-26 20:56:04 +0000
commitf3e98b5d75919954908260771ba2a987309c7fa0 (patch)
tree3c2f30ead3f23405e3a19d86eb5e425855db4890 /etc/rc.local
parent8a549178ee06b6828240c981a6bdd4e3f523609d (diff)
Add a simple 'rc' system to base in order to start/stop/restart/reload
services installed by the ports system (for now). It only uses pgrep/pkill to handle these processes. A manual page will come later. 'put it in' deraadt@
Diffstat (limited to 'etc/rc.local')
-rw-r--r--etc/rc.local7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.local b/etc/rc.local
index 83284ff292a..af88e0a06c7 100644
--- a/etc/rc.local
+++ b/etc/rc.local
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $
+# $OpenBSD: rc.local,v 1.40 2010/10/26 20:56:03 robert Exp $
# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
@@ -7,7 +7,10 @@
echo -n 'starting local daemons:'
+for _r in $rc_scripts; do
+ [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} start && echo -n " ${_r}"
+done
+
# Add your local startup actions here.
echo '.'
-