diff --git a/scripts/centengine.sh.in b/scripts/centengine.sh.in index 8c0fc00..35b9358 100755 --- a/scripts/centengine.sh.in +++ b/scripts/centengine.sh.in @@ -83,13 +83,14 @@ } service_start() { + check_configuration + if [ -f $pid_file ] && [ ! -d "/proc/$(cat $pid_file)" ]; then rm -f $pid_file > /dev/null 2>&1 fi if [ ! -f $pid_file ]; then - check_configuration - + rm -f $command_file > /dev/null 2>&1 su - $user -c "touch $var_dir/centengine.log $retention_file" if [ $debug -eq 1 ]; then