<div class="gmail_quote">On Wed, Feb 29, 2012 at 5:34 PM, Svein Seldal <span dir="ltr"><<a href="mailto:sveinse@seldal.com">sveinse@seldal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
More specifically, if I have a job like this:<br>
<br>
start on starting dbus<br>
task<br>
script<br>
# Main script here...<br>
<br>
if [ "$production-mode" ]; then<br>
initctl stop -n network-manager<br>
fi<br>
<br>
# Disable network-manager<br>
end script<br>
<br>
This does not work, as network-manager isn't started yet. NM depends on started dbus, which hasen't happened yet.<br>
<br>
Is it at all possible to tell upstart not to start a future job without having to reload its config?<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote><div><br>As per my previous email (which probably hadn't arrived by the time you sent this one), I think you're going about it sort of backwards. Your job should emit an 'application-mode' event when not production mode. Then network-manager (and anything else) should be adjusted to "start on (default-conditions) and application-mode" using override files.<br>
<br>Cheers,<br>Evan<br></div></div>