We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c4626 commit 770bfe4Copy full SHA for 770bfe4
1 file changed
packaging/centos63/cloud-management.rc
@@ -57,6 +57,8 @@ stop() {
57
done
58
if [ "$(ps --pid $pid | grep -c $pid)" -eq "0" ]; then
59
log_success_msg "Stopping ${NAME}:"
60
+ rm -f /var/run/${NAME}.pid
61
+ rm -f /var/lock/subsys/${NAME}
62
else
63
log_failure_msg "Stopping ${NAME}:"
64
fi
@@ -77,7 +79,7 @@ set_ulimit() {
77
79
}
78
80
81
handle_pid_file() {
- if [ "$1" -ne 0 ] ; then
82
+ if [ "$1" -ne 0 ] && [ "$1" -ne 3 ]; then
83
echo "The pid file locates at /var/run/${NAME}.pid and lock file at /var/lock/subsys/${NAME}.
84
Starting ${NAME} will take care of them or you can manually clean up."
85
0 commit comments