You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 using supervisorctl 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.
The text was updated successfully, but these errors were encountered:
@mnaberez, I am not talking here about creating of log directory automatically. I aim is to ignore this error because it's not critical. Imagine you have 100 programs in the config and only 1 references to a directory that doesn't exist. What should happen? I think it's more than logical that daemon should start, print warning message to the log and mark 1 program as failed.
I aim is to ignore this error because it's not critical. Imagine you have 100 programs in the config and only 1 references to a directory that doesn't exist. What should happen?
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:
chef
(install packages and create configuration files).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 runcapistrano
in order to deploy application 1st time (it creates all the required directories) and tries to restart services usingsupervisorctl
but fails. So I need to runchef
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.
The text was updated successfully, but these errors were encountered: