<div dir="ltr">Below is a link to a tutorial I wrote on how to setup stunnel to run as two services.. it's not really necessary anymore because stunnel can do this natively but some people may still benefit from doing it this way.<br>
<br><a href="http://sunshinecoder.blogspot.com/2013/04/setup-stunnel-as-two-services.html">http://sunshinecoder.blogspot.com/2013/04/setup-stunnel-as-two-services.html</a><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Apr 6, 2013 at 11:34 AM, Javier <span dir="ltr"><<a href="mailto:meresponde2001-stn@yahoo.es" target="_blank">meresponde2001-stn@yahoo.es</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 Fri, 5 Apr 2013 18:28:43 -0400<br>
Brian Wilkins <<a href="mailto:bwilkins@gmail.com">bwilkins@gmail.com</a>> wrote:<br>
<br>
> I simply have two entries in services. It requires editing the registry and<br>
> giving two different names to the service entries, for instance<br>
> stunnel-client and stunnel-server. You can call different config files too.<br>
><br>
<br>
</div>Hi,<br>
<br>
Ok, I've played a little with your explanation and SrvAny (link below) and<br>
I found that is not exactly as you tell, at least under Windows 2000.<br>
<br>
I didn't know this, but stunnel can run several instances just renaming the<br>
stunnel.exe executable, because what stunnel checks only is the PID name<br>
not whatever others applications check to check if it is already running. So<br>
just changing the executable name of every stunnel.exe copy is enough to have<br>
several intances running.<br>
<br>
About the services, it is not as you told (with my tests). I created two services,<br>
but if they call to the same executable the behavior is as expected: unable to<br>
run 2 or more instances. It only works if you link each service with a different<br>
named executable. Lets say we create service "stn1" and "stn2"; "stn1" should<br>
call to "stunnel1.exe" and "stn2" should call to "stunnel2.exe". Of course, each<br>
one can take each own .conf file.<br>
<br>
Anyway, it was interesting to find out this :-)<br>
<br>
Regards.<br>
<br>
<br>
Handy application from the NT Resource Kit:<br>
<a href="http://support.microsoft.com/kb/137890/en" target="_blank">http://support.microsoft.com/kb/137890/en</a><br>
<br>
Download links, including for Windows 2003 server (microsoft website link):<br>
<a href="http://www.iopus.com/guides/srvany.htm" target="_blank">http://www.iopus.com/guides/srvany.htm</a><br>
<br>
Remember to pass an antivirus anyway.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
</div></div></blockquote></div><br></div>