Running C-Gate as service on Windows (HowTo)

Discussion in 'C-Bus Toolkit and C-Gate Software' started by more-solutions, Aug 1, 2011.

  1. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    I've just been playing with running C-Gate (v2.8.0/2316) as a service on Windows Server 2008 32-Bit, and since I seem to have it working I thought it might be useful to someone else (I know there are other ways to do this).

    I'm using JSLWin (free/open source) from here:
    http://jslwin.sourceforge.net/

    The setup is simple, and should work on pretty much any version of Windows:

    • Copy jsl.exe and jsl.ini into C:\Clipsal\C-Gate2
    • Configure jsl.ini
    • Test by running jsl -debug from C:\Clipsal\C-Gate2
    • Install by running jsl -install
    • Start service as normal (eg via Control Panel or "net start C-Gate")
    The only bit that threw me to start with was the configuring of jsl.ini so mine is attached. (I renamed it as .txt as the forum won't allow .ini attachements.) If you want you can rename both files to something "better" (I have mine as jsl-cgate.exe and jsl-cgate.ini), as long as they "match".

    Note that it's only had about 10 mins of "testing" so far, so use at your own risk, etc.
     

    Attached Files:

    • jsl.txt
      File size:
      11 KB
      Views:
      523
    more-solutions, Aug 1, 2011
    #1
  2. more-solutions

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Newman, Aug 1, 2011
    #2
  3. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    Indeed it has, and I've played with XYNTService, for example, before.

    For various reasons I decided to take a fresh look at this, and the method above seems "cleaner" than some of the alternatives (at least from my attempts) so I thought I'd add it to the pot of combined wisdom :)
     
    more-solutions, Aug 2, 2011
    #3
  4. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    Just noticed: In the jsl.ini I attached above, the line that starts C-Gate includes:
    Code:
    -Xmx180m
    .. which I needed for my site to allocate memory to C-Gate but probably isn't needed for most people and can be removed.
     
    more-solutions, Aug 2, 2011
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.