diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2010-10-26 20:56:04 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2010-10-26 20:56:04 +0000 |
commit | f3e98b5d75919954908260771ba2a987309c7fa0 (patch) | |
tree | 3c2f30ead3f23405e3a19d86eb5e425855db4890 /etc/rc.local | |
parent | 8a549178ee06b6828240c981a6bdd4e3f523609d (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.local | 7 |
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 '.' - |