Trigger restart of service only when certain files exist?

Hi there,

I have a playbook that sets up an upstart script for a service that is not immediately deployed to the instance yet. There is a trigger on that call to restart the service, which of course fails because the app files are not there yet. They get deployed later on. Is it possible to trigger a notify of a service ONLY when that service actually exists?

Thanks,

Grayson

Why not deploy the service prior to the upstart script? Or why not bundle them into a package? There seems to be something I’m not understanding in the flow of your playbook.

  • James