<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am wondering if the following is a bug or a feature:<div><br>When I start two instances, each one with a different value (via a key) of instance variable "A"&nbsp;and then stop one using a specific KEY, it stops both instances.<br><br><div>I would have expected only the one with the specified key that matches a specific instance would be stopped:<br><br></div><div>Created the file /etc/init/test.conf with the following contents:<br>(The behavior is the same if I use $A instead of ${A})<br><br>-------- Start of test.conf -----<br><font class="Apple-style-span" face="'Andale Mono'" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br>start on (start_foo A=*)<br><br>stop on (stop_foo A=*)<br><br>instance ${A}<br><br>script<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;logger -i -t test "Starting A: $A"<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exec yes<br>end script<br></span></font><br>-------- End of test.conf -----<br><br>Then when I start two instances, each one with a different instance variable "A"<br>and then stop one using a specific KEY, it stops both instances.&nbsp;</div><div><br></div><div>I&nbsp;would have expected only the one with the specified key that matches a specific instance would be stopped.&nbsp;</div><div><br></div><div>Here is a transcript of a shell session showing this:</div><div><br><font class="Apple-style-span" face="'Andale Mono'" size="4"><span class="Apple-style-span" style="font-size: 14px;"># initctl emit start_foo A=hello &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br># initctl list | grep test &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>test (hello) start/running, process 17432<br># initctl emit start_foo A=goodby &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br># initctl list | grep test &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>test (hello) start/running, process 17432<br>test (goodby) start/running, process 17438<br># initctl emit stop_foo A=goodby &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br># initctl list | grep test &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>test stop/waiting</span></font><br><div><br class="webkit-block-placeholder"></div><div>Am I doing something wrong or just have incorrect expectations of how this should work?</div><div>Thanks</div><div>Rob</div><div><br></div><div apple-content-edited="true">__________________<br>Robert J Berger - CTO<br>Runa Inc.<span class="Apple-tab-span" style="white-space:pre">        </span><br>520 San Antonio Rd Suite 210, Mountain View, CA 94040<br>+1 408-838-8896<br><a href="http://blog.ibd.com">http://blog.ibd.com</a> / <a href="http://www.runa.com">http://www.runa.com</a><br></div><br></div></div></body></html>