-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
In my opinion supervisor daemon itself should be super reliable and start even if there is any issue with configuration of particular programs.
In my case I am deploying my application in 2 steps:
- Bootstrap server using
chef(install packages and create configuration files). - Deploy application using
capistrano(fetches application from github and restart particular services usingsupervisorctl restart my_group:*.
I run 1st step first time when I am bootstrapping new machine or when I do any changes to software or system configuration. 2nd step is running in order to release new version of application code.
So after very first running of chef I am ending up with broken supervisor (service is dead) because it can't find directory. Then run capistrano in order to deploy application 1st time (it creates all the required directories) and tries to restart services using supervisorctl but fails. So I need to run chef 1 more time which is inconvenience.
I do believe if something is wrong with single program configuration then supervisor daemon itself should start but program should be in failed state.