Re: Multiple Proxies as service on windows based systems
"Jay Sea" <jaysea-1mbpWQn+QesL+hBr1Vu/[email protected]> Fri, 5 Dec 2003 12:35:00 +0100
| Newsgroups | gmane.comp.distributed-net.proxyper |
|---|---|
| Message-ID | <002b01c3bb23$d1651ce0$03190a0a@jayseasserver> |
This is a multi-part message in MIME format. --===============0412818053== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0028_01C3BB2C.3300EE40" This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C3BB2C.3300EE40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It's true that you can't run it as a service in two folders, but you can = run in hidden. Just add it to the startup folder and add the "-hidden" = command behind it. Now there are two proxyper processes. ----- Original Message -----=20 From: Floppus=20 To: proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]=20 Sent: Friday, December 05, 2003 12:24 AM Subject: [PROXYPER] Multiple Proxies as service on windows based = systems Hi, As shown in the attached picture, I have managed to manually register = more than one proxy as a service. All proxies are fully functional, and can be started via the service = manager. The only problem that I can't figure out is: I cannot start 2 proxies = as service simultaneously. I can start one, or another, but never both. When attempting to start a second proxy, service control manager = replies that the service had been started, but terminated (which is = normal if the application shuts itself down after execution). Things I have eliminated sofar: - proxies are in different folders - proxy .exe's (proxyper.exe) have different names - the name for the Service is different - dependencies are correct (any of the services will start, just not 2 = of them at the same time) - No LOG entry is written whatsoever - Ports on which the proxies listen are different - IP to flush from is different - IP to flush to is different I used a small VB-thingie to register the service: Private Declare Function CreateService _ Lib "ADVAPI32.DLL" Alias "CreateServiceA" _ (ByVal hSCManager As Long, ByVal lpServiceName As String, _ ByVal lpDisplayName As String, ByVal dwDesiredAccess As Long, _ ByVal dwServiceType As Long, ByVal dwStartType As Long, _ ByVal dwErrorControl As Long, ByVal lpBinaryPathName As String, _ ByVal lpLoadOrderGroup As String, ByVal lpdwTagId As String, _ ByVal lpDependencies As String, ByVal lp As String, _ ByVal lpPassword As String) As Long Thanks in advance! -------------------------------------------------------------------------= ----- _______________________________________________ proxyper mailing list proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected] http://lists.distributed.net/mailman/listinfo/proxyper ------=_NextPart_000_0028_01C3BB2C.3300EE40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>It's true that you can't run it as a = service in two=20 folders, but you can run in hidden. Just add it to the startup folder = and add=20 the "-hidden" command behind it. Now there are two proxyper=20 processes.</FONT></DIV> <DIV> </DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3DFloppus-YoKOdZtIZA5mR6Xm/[email protected] = href=3D"mailto:Floppus-YoKOdZtIZA5mR6Xm/[email protected]">Floppus</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 title=3Dproxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]=20 = href=3D"mailto:proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]">[email protected]= .net</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, December 05, 2003 = 12:24=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [PROXYPER] Multiple = Proxies as=20 service on windows based systems</DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>As shown in the attached picture, I = have managed=20 to manually register more than one proxy as a service.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>All proxies are fully functional, and = can be=20 started via the service manager.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The only problem that I can't figure = out is: I=20 cannot start 2 proxies as service simultaneously.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I can start one, or another, but = never=20 both.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>When attempting to start a second = proxy, service=20 control manager replies that the service had been started, but = terminated=20 (which is normal if the application shuts itself down after=20 execution).</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Things I have eliminated = sofar:</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- proxies are in different = folders</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- proxy .exe's (proxyper.exe) have = different=20 names</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- the name for the Service is=20 different</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- dependencies are correct (any of = the services=20 will start, just not 2 of them at the same time)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- No LOG entry is written = whatsoever</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- Ports on which the proxies = listen are=20 different</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- IP to flush from is = different</FONT></DIV> <DIV><FONT face=3DArial size=3D2>- IP to flush to is = different</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I used a small VB-thingie to register = the=20 service:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Private Declare Function = CreateService _<BR>Lib=20 "ADVAPI32.DLL" Alias "CreateServiceA" _<BR>(ByVal hSCManager As Long, = ByVal=20 lpServiceName As String, _<BR>ByVal lpDisplayName As String, ByVal=20 dwDesiredAccess As Long, _<BR>ByVal dwServiceType As Long, ByVal = dwStartType=20 As Long, _<BR>ByVal dwErrorControl As Long, ByVal lpBinaryPathName As = String,=20 _<BR>ByVal lpLoadOrderGroup As String, ByVal lpdwTagId As String, = _<BR>ByVal=20 lpDependencies As String, ByVal lp As String, _<BR>ByVal lpPassword As = String)=20 As Long</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks in advance!</FONT></DIV> <P> <HR> <P></P>_______________________________________________<BR>proxyper = mailing=20 = list<BR>proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]<BR>http://lists.distributed.net/ma= ilman/listinfo/proxyper<BR></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0028_01C3BB2C.3300EE40-- --===============0412818053== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ proxyper mailing list proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected] http://lists.distributed.net/mailman/listinfo/proxyper --===============0412818053==--