summaryrefslogtreecommitdiff
path: root/etc/rc
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
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')
-rw-r--r--etc/rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 487663a23b3..05e2a9feb19 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.342 2010/10/01 20:51:32 jakob Exp $
+# $OpenBSD: rc,v 1.343 2010/10/26 20:56:03 robert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -157,6 +157,9 @@ HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
+# pick up option configuration
+. /etc/rc.conf
+
if [ X"$1" = X"shutdown" ]; then
dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 >/dev/null 2>&1
chmod 600 /var/db/host.random >/dev/null 2>&1
@@ -244,9 +247,6 @@ rm -f /fastboot # XXX (root now writeable)
random_seed
-# pick up option configuration
-. /etc/rc.conf
-
# set flags on ttys. (do early, in case they use tty for SLIP in netstart)
echo 'setting tty flags'
ttyflags -a