Thank you, this was very helpful!<br><br>-Don<br><br><div class="gmail_quote">On Dec 8, 2007 9:09 AM, Jean-Paul Calderone &lt;<a href="mailto:exarkun@divmod.com">exarkun@divmod.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Sat, 8 Dec 2007 08:52:36 -0800, Don Smith &lt;<a href="mailto:donwsmith@gmail.com">donwsmith@gmail.com</a>&gt; wrote:<br>&gt;Hi all,<br>&gt;<br>&gt;I&#39;m still a bit of a novice but I&#39;m trying to implement MultiService. The
<br>&gt;trick is that I want my program to be able to change it&#39;s config while it is<br>&gt;running. Once the app realizes it has a new configuration it needs to stop<br>&gt;all services, load the new config and start services accordingly. However,
<br>&gt;I&#39;m stuck right now with how to stop all services. I&#39;m thinking I need to<br>&gt;loop over the children of MultiService and call stopService on them, but I&#39;m<br>&gt;not sure how to do that. Or should I just call stopServivce on the
<br>&gt;MultiService object?<br><br></div></div>MultiService.stopService will call stopService on all of its child services,<br>so if the goal is to do that, then a for loop is more work for the same<br>result.<br><br>When you call stopService, keep in mind that it can return a Deferred which
<br>you&#39;ll probably want to wait for before trying to start anything again.<br><br>Likewise for startup, you can just call MultiService.startService to start<br>all of its children.<br><br>It might also be useful to know that removing a service from a running
<br>MultiService will stop the service and adding a service to a running<br>MultiService will start it.<br><br>Jean-Paul<br><br>_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">
Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br></blockquote></div>
<br>