I am using
supervisord inside a Docker container to manage my running processes and would like to also use it to trigger certain commands - run them once and expect them to exit with
Here's one example:
[program:central-seed-posts] command = /usr/bin/php /var/www/app/artisan post autostart = false autorestart = false startsecs = 3 startretries = 0 exitcodes = 0 stderr_logfile=/tmp/central/posts-stderr-supervisor.log stdout_logfile=/tmp/central/posts-stdout-supervisor.log
And I'm using nsenter's
supervisorctl start central-seed-posts to trigger it but I would also like to handle a successful exit instead of supervisor telling me
ERROR (abnormal termination)
Does it have to do with supervisor events ?