Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Component/s: bluepill
-
Labels:
Description
The bluepill_service :load action will not reload a service when the .pill template changes. Consequently, the restart command sent to the bluepill_service simply bluepill to look inside the .pill it has already loaded and execute the restart command. The bluepill_service needs a :reload action which will reload the service from the .pill. Then, upon updating the template, one can notify the service to reload and subsequently notify the service to restart.
I have added a :force_load action to the service provider as I am facing the same issue.
The reason I called it :force_load instead of :reload is because it doesn't check whether the pill is already loaded or running, it simply issues the load command and informs the update.
The code can be found in this branch of my private fork: https://github.com/cassianoleal/bluepill/tree/force_load
Please try it out and let us know if it works as you expected or if you find any problems.
Thanks.