aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/local
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2002-10-12 07:23:43 +0000
committerDima Dorfman <dd@FreeBSD.org>2002-10-12 07:23:43 +0000
commit2dbe6947fad238ac8f73e52b34ea525f52f108e9 (patch)
tree9da1331ebd0a413be28dc006c511438b70dfef5d /etc/rc.d/local
parent605cf4c8a3a12b6af1785e8f1b107e67beb1ac38 (diff)
downloadsrc-2dbe6947fad238ac8f73e52b34ea525f52f108e9.tar.gz
src-2dbe6947fad238ac8f73e52b34ea525f52f108e9.zip
Aesthetics: Output a prefix before sourcing rc.local as the old rc
script did. Stuff in rc.local frequently has lines like "echo -n ' service_name'" which look ugly without a prefix and a trailing period. Likewise for rc.shutdown.local for consistency.
Notes
Notes: svn path=/head/; revision=104973
Diffstat (limited to 'etc/rc.d/local')
-rwxr-xr-xetc/rc.d/local4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.d/local b/etc/rc.d/local
index 42e96bf472c2..5d5e4ba7dcfb 100755
--- a/etc/rc.d/local
+++ b/etc/rc.d/local
@@ -17,16 +17,20 @@ stop_cmd="local_stop"
local_start()
{
+ echo -n 'Starting local daemons:'
if [ -f /etc/rc.local ]; then
. /etc/rc.local
fi
+ echo '.'
}
local_stop()
{
+ echo -n 'Shutting down loacal daemons:'
if [ -f /etc/rc.shutdown.local ]; then
. /etc/rc.shutdown.local
fi
+ echo '.'
}
load_rc_config $name