Run check_run only in do_start()

This commit is contained in:
Alexander Wirt 2014-06-15 20:18:20 +02:00 committed by Michael Friedrich
parent c2f8d109b5
commit 63888508a4
1 changed files with 1 additions and 2 deletions

View File

@ -61,6 +61,7 @@ check_config () {
#
do_start()
{
check_run
# Return
# 0 if daemon has been started
# 1 if daemon was already running
@ -140,8 +141,6 @@ do_check_config () {
fi
}
check_run
case "$1" in
start)
do_check_config