Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Job Config Reload and apache2 Restart

keyvanfatehi edited this page Jun 16, 2012 · 1 revision

Until Cyphactor gets a chance to refactor parts of octopusci, some things are still tedius. For example, if you change your job definitions, you need to be sure to reload the sinatra app and the tentacle you may have running.

In my setup, I run a single tentacle server (an instance of resque) using my LaunchAgent

Given the nature of octopusci-tentacle, I cannot simply say launchctl restart com.octopusci.tentacles -- it is also unable to KeepAlive. Hopefully this support will be added in the future.

In the meantime, I use this one liner in order to do a quick restart of everything:

kill -9 `ps aux | grep resque | grep octopusci | awk '{print $2}'` && sudo apachectl -k restart && launchctl start com.octopusci.tentacles