summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-08-05 03:03:57 +0000
committerngie <ngie@FreeBSD.org>2015-08-05 03:03:57 +0000
commitb62835a630fee21d02287e48a5e8dbee2d1f661e (patch)
tree59e1248153f96e886e1c0f3cfed94cc776903684 /etc
parent3f7757f79fc0ae22aa80edc45821799652c2cbb3 (diff)
downloadFreeBSD-src-b62835a630fee21d02287e48a5e8dbee2d1f661e.zip
FreeBSD-src-b62835a630fee21d02287e48a5e8dbee2d1f661e.tar.gz
Update the comment about handling old-style rc(5) scripts
The old-style (*.sh) scripts in /etc/rc.d are explicitly ignored, whereas other scripts ending in .sh are permitted
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 914d17f..c23c8fd 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -1266,8 +1266,11 @@ _run_rc_killcmd()
# run_rc_script file arg
# Start the script `file' with `arg', and correctly handle the
# return value from the script.
-# If `file' ends with `.sh', it's sourced into the current environment
-# when $rc_fast_and_loose is set, otherwise it is run as a child process.
+# If `file' ends with `.sh' and lives in /etc/rc.d, ignore it as it's
+# an old-style startup file.
+# If `file' ends with `.sh' and does not live in /etc/rc.d, it's sourced
+# into the current environment if $rc_fast_and_loose is set; otherwise
+# it is run as a child process.
# If `file' appears to be a backup or scratch file, ignore it.
# Otherwise if it is executable run as a child process.
#
OpenPOWER on IntegriCloud