summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-10-12 07:23:43 +0000
committerdd <dd@FreeBSD.org>2002-10-12 07:23:43 +0000
commit1729d6240e1e574f8f53161901dd9a603a99bc76 (patch)
tree9da1331ebd0a413be28dc006c511438b70dfef5d /etc
parent17052f13f456d1f964698ad1069ff93fb90d43ae (diff)
downloadFreeBSD-src-1729d6240e1e574f8f53161901dd9a603a99bc76.zip
FreeBSD-src-1729d6240e1e574f8f53161901dd9a603a99bc76.tar.gz
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.
Diffstat (limited to 'etc')
-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 42e96bf..5d5e4ba 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
OpenPOWER on IntegriCloud