Re: Multiple Proxies as service on windows based systems

"Jan Coenen" <[email protected]> Sun, 28 Dec 2003 12:25:50 +0100
Newsgroups gmane.comp.distributed-net.proxyper
Message-ID <002a01c3cd35$59190ac0$03190a0a@jayseasserver>
This is a multi-part message in MIME format.

--===============0242432090==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0027_01C3CD3D.BA939880"

This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C3CD3D.BA939880
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm glad I could help. I see that the -hide command was the switch. =
-detach does also work and... sorry it wasn't hidden but hide but you =
found it anyways.

Good luck with your proxyper's.
  ----- Original Message -----=20
  From: Floppus=20
  To: Personal Proxy Discussion=20
  Sent: Thursday, December 11, 2003 7:38 AM
  Subject: Re: [PROXYPER] Multiple Proxies as service on windows based =
systems


  aha...!

  *Floppus cowlicks Jay Sea

  I already made a small app that would hide it as a workaround, but it =
wasn't forwareded, probably because of the included executable.
  Ofcourse I instantly checked the documentation included with the =
proxy, which doesn't mention this switch.
  (ok,after knowing the switch, it can be found when searching =
disitributed.net for it)

  I included the command line switch in the manual and attached it.

  Floppus



    ----- Original Message -----=20
    From: Jay Sea=20
    To: Personal Proxy Discussion=20
    Sent: Friday, December 05, 2003 12:35 PM
    Subject: Re: [PROXYPER] Multiple Proxies as service on windows based =
systems


    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



-------------------------------------------------------------------------=
---


    _______________________________________________
    proxyper mailing list
    proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]
    http://lists.distributed.net/mailman/listinfo/proxyper



-------------------------------------------------------------------------=
-----


  _______________________________________________
  proxyper mailing list
  proxyper-Ra3b/QYEcJ3d140v2zMXi0fjHoOT/h/[email protected]
  http://lists.distributed.net/mailman/listinfo/proxyper

------=_NextPart_000_0027_01C3CD3D.BA939880
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>I'm glad I could help. I see that the =
-hide command=20
was the switch. -detach does also work and... sorry it wasn't hidden but =
hide=20
but you found it anyways.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Good luck with your =
proxyper's.</FONT></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]">Personal Proxy =
Discussion</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, December 11, =
2003 7:38=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [PROXYPER] =
Multiple Proxies=20
  as service on windows based systems</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>aha...!</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>*Floppus cowlicks Jay =
Sea</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I already made a small app that would =
hide it as=20
  a workaround, but it wasn't forwareded, probably because of the =
included=20
  executable.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Ofcourse I instantly checked the =
documentation=20
  included with the proxy, which doesn't mention this =
switch.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>(ok,after knowing the switch, it can =
be found=20
  when searching disitributed.net for it)</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I included the command line switch in =
the manual=20
  and attached it.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Floppus</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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=3Djaysea-1mbpWQn+QesL+hBr1Vu/[email protected] =
href=3D"mailto:jaysea-1mbpWQn+QesL+hBr1Vu/[email protected]">Jay=20
    Sea</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]">Personal Proxy =
Discussion</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, December 05, =
2003 12:35=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [PROXYPER] =
Multiple=20
    Proxies as service on windows based systems</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3DArial size=3D2>It's true that you can't run it as =
a service in=20
    two folders, but you can run in hidden. Just add it to the startup =
folder=20
    and add the "-hidden" command behind it. Now there are two proxyper=20
    processes.</FONT></DIV>
    <DIV>&nbsp;</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>=20
      </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=20
      as 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>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>As shown in the attached picture, =
I have=20
      managed to manually register more than one proxy as a=20
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>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>The only problem that I can't =
figure out is:=20
      I 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>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>When attempting to start a second =
proxy,=20
      service control manager replies that the service had been started, =
but=20
      terminated (which is normal if the application shuts itself down =
after=20
      execution).</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>Things I have eliminated =
sofar:</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>- proxies are in different=20
      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=20
      services will start, just not 2 of them at the same =
time)</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>- No LOG entry is written=20
      whatsoever</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>-&nbsp;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>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2>Private Declare Function =
CreateService=20
      _<BR>Lib "ADVAPI32.DLL" Alias "CreateServiceA" _<BR>(ByVal =
hSCManager As=20
      Long, ByVal lpServiceName As String, _<BR>ByVal lpDisplayName As =
String,=20
      ByVal dwDesiredAccess As Long, _<BR>ByVal dwServiceType As Long, =
ByVal=20
      dwStartType As Long, _<BR>ByVal dwErrorControl As Long, ByVal=20
      lpBinaryPathName As String, _<BR>ByVal lpLoadOrderGroup As String, =
ByVal=20
      lpdwTagId As String, _<BR>ByVal lpDependencies As String, ByVal lp =
As=20
      String, _<BR>ByVal lpPassword As String) As Long</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
      <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>
    <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>
  <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_0027_01C3CD3D.BA939880--


--===============0242432090==
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

--===============0242432090==--