By setec
Is there something special I have to add to the config file to stop supervisor from constantly trying to restart this process that’s already running?
example: tail stdout.log
“Service admin is already running Service admin is already running Service admin is already running Service admin is already running”
This appears over and over.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Usually, the following should work as normal:
[program:some_name_here]
command=/path/to/app.py --port=8080
autostart=true
autorestart=true
stderr_logfile = /var/log/supervisord/some_name_here-stderr.log
stdout_logfile = /var/log/supervisord/some_name_here-stdout.log
redirect_stderr=true
I’ve noticed that if you add an & at the end of your command it would cause the error that you are referring to. That’s because the & is sending the command to the background which supervisord recognizes as the service stopping.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.