diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2011-03-17 16:43:52 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2011-03-17 16:43:52 +0000 |
commit | aef677ae8409fb41e4d9d4a21fba8c121b94fa80 (patch) | |
tree | 505f346c92b0dd8ca19ff3b4ee6440db3b8a0584 /etc/rc | |
parent | 5b462fcc3a3a112cfe7096664c51c8369ccfd088 (diff) |
- introduce the INRC environment variable so that rc.subr(8) knows if it
gets called from rc.local or rc.shutdown
- notify the user if a given operation was successfull or not by appending
the (ok) or (failed) strings to the end of the daemon name
- hide stdout and stdin unless RC_DEBUG=1 is set, otherwise all the function
names will be printed out and all output sent to stdin or stdout
- since from now on rc.subr is taking care of printing out the daemon names
on startup, we don't need to do this from rc.{local,shutdown} anymore
brainkilling work done by me and ajacoutot@, ok ajacoutot@
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.348 2011/01/14 00:05:42 deraadt Exp $ +# $OpenBSD: rc,v 1.349 2011/03/17 16:43:51 robert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -152,6 +152,7 @@ trap : 2 trap : 3 # shouldn't be needed HOME=/; export HOME +INRC=1; export INRC PATH=/sbin:/bin:/usr/sbin:/usr/bin export PATH |