Fix in init.d script (#4700).
Dorian Guillois
10 years ago
82 | 82 | } |
83 | 83 | |
84 | 84 | service_start() { |
85 | check_configuration | |
86 | ||
85 | 87 | if [ -f $pid_file ] && [ ! -d "/proc/$(cat $pid_file)" ]; then |
86 | 88 | rm -f $pid_file > /dev/null 2>&1 |
87 | 89 | fi |
88 | 90 | |
89 | 91 | if [ ! -f $pid_file ]; then |
90 | check_configuration | |
91 | ||
92 | rm -f $command_file > /dev/null 2>&1 | |
92 | 93 | su - $user -c "touch $var_dir/centengine.log $retention_file" |
93 | 94 | |
94 | 95 | if [ $debug -eq 1 ]; then |