Bug fix: remove warning in pidfile removal

This commit is contained in:
2012-01-22 16:12:07 +00:00
parent 1049f5e708
commit 1f6ef74030

View File

@@ -23,7 +23,9 @@ stop() {
local ret=$? local ret=$?
eend ${ret} "Failed to stop ripping-cluster-worker" eend ${ret} "Failed to stop ripping-cluster-worker"
${ret} || rm -f ${PID_FILE} if [[ "${ret}" == 0 ]]; then
rm -f ${PID_FILE}
fi
return ${ret} return ${ret}
} }