Output information only if /etc/rc.local exists.

This commit is contained in:
Mike Makonnen 2008-06-22 16:23:39 +00:00
parent 3c81343da6
commit f27ca6ea2f

View File

@ -16,20 +16,20 @@ stop_cmd="local_stop"
local_start() local_start()
{ {
echo -n 'Starting local daemons:'
if [ -f /etc/rc.local ]; then if [ -f /etc/rc.local ]; then
echo -n 'Starting local daemons:'
. /etc/rc.local . /etc/rc.local
echo '.'
fi fi
echo '.'
} }
local_stop() local_stop()
{ {
echo -n 'Shutting down local daemons:'
if [ -f /etc/rc.shutdown.local ]; then if [ -f /etc/rc.shutdown.local ]; then
echo -n 'Shutting down local daemons:'
. /etc/rc.shutdown.local . /etc/rc.shutdown.local
echo '.'
fi fi
echo '.'
} }
load_rc_config $name load_rc_config $name