a background
On the company's server where the code is deployed, use to supervisorctl
restart the newly compiled code, and then report an error, the prompt is as follows, and the corresponding figure is as follows:
supervisor: couldn't exec /xxx/xxxx: ETXTBSY supervisor: child process was not spawn
Two how to solve this problem
2.1 Source of the problem
Why does this problem arise? To be honest, when I first saw this error message, I was also puzzled! Never encountered such a problem! So I opened the corresponding log file and found that the service is still continuously generating service logs! The service is normal! Then I looked at ETXTBSY
the explanation of the keyword: and found that the meaning of this word probably means that the corresponding service already exists and is running! So I seem to know the problem: when the service is redeployed, the service already exists and is providing services to the outside world, so there is no way to restart it? So I did the following
2.2 How to deal with it
First, through the service