<div dir="ltr"><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80)">On Mon, Sep 16, 2013 at 4:36 PM, Charles Lepple </span><span dir="ltr" style="color:rgb(80,0,80)"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span><span style="color:rgb(80,0,80)"> wrote:</span><br style="color:rgb(80,0,80)">
<div class="gmail_extra" style="color:rgb(80,0,80)"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>On Sep 12, 2013, at 7:47 PM, Derek Rachul <<a href="mailto:drachul@gmail.com" target="_blank">drachul@gmail.com</a>> wrote:<br><br>> I tried reversing the order of the definitions in the config file, and it does seem to change the order in which they're loaded (at least according to the system logs) however the error remains.<br>
<br></div>I don't have any experience using the dummy-ups driver on the same host as the real UPS driver, so this is a shot in the dark.<br><br>Can you manually run "upsdrvctl start qnapups"? If it works that way, we may have a race condition in dummy-ups.</blockquote>
<div> </div></div></div></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">Hi Charles,</div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">
It appears that if I re-run the command above after the main ups driver is running, that the qnapups dummy-ups driver seems to come up, and the target slave seems to be able to connect to it:</div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px">
<br></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_extra"># upsdrvctl start qnapups</div><div class="gmail_extra">Network UPS Tools - UPS driver controller 2.6.3</div>
<div class="gmail_extra">Network UPS Tools - Device simulation and repeater driver 0.12 (2.6.3)</div><div>...<br></div></div><div class="gmail_extra" style="font-family:arial,sans-serif;font-size:13px"><div class="gmail_extra">
Sep 16 17:05:50 upsd[24756]: listening on 0.0.0.0 port 3493</div><div class="gmail_extra">Sep 16 17:05:50 upsd[24756]: Connected to UPS [ups]: apcsmart-ups</div><div class="gmail_extra">Sep 16 17:05:50 upsd[24756]: Can't connect to UPS [qnapups] (dummy-ups-qnapups): No such file or directory</div>
<div class="gmail_extra">Sep 16 17:05:50 upsd[24757]: Startup successful</div><div class="gmail_extra">Sep 16 17:05:50 upsd[24757]: User <a href="mailto:monuser@127.0.0.1" target="_blank">monuser@127.0.0.1</a> logged into UPS [ups]</div>
<div class="gmail_extra">Sep 16 17:06:10 upsd[24757]: Connected to UPS [qnapups]: dummy-ups-qnapups</div><div><br></div><div>I guess there is some sort of timing considerations there.  Is there any way to delay the loading of a particular UPS driver?</div>
<div class=""><div id=":xz" class="" tabindex="0"><br></div><div id=":xz" class="" tabindex="0"><span style="color:rgb(136,136,136)">Derek.</span><br></div><div id=":xz" class="" tabindex="0"><span style="color:rgb(136,136,136)"><br>
</span></div><div id=":xz" class="" tabindex="0"><div class=""><div id=":xz" class="" tabindex="0">p.s. sorry to Charles for sending this twice, but I forgot to reply-all first time around.<img class="" src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
</div><span class=""><font color="#888888"><br></font></span></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 4:36 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sep 12, 2013, at 7:47 PM, Derek Rachul <<a href="mailto:drachul@gmail.com">drachul@gmail.com</a>> wrote:<br>

<br>
> I tried reversing the order of the definitions in the config file, and it does seem to change the order in which they're loaded (at least according to the system logs) however the error remains.<br>
<br>
</div>I don't have any experience using the dummy-ups driver on the same host as the real UPS driver, so this is a shot in the dark.<br>
<br>
Can you manually run "upsdrvctl start qnapups"? If it works that way, we may have a race condition in dummy-ups. </blockquote></div><br></div>