Spark Gateway as a Service

350 views
Skip to first unread message

Simon

unread,
Aug 3, 2011, 4:07:10 PM8/3/11
to AndroidRemote
Hi

Not being a java expert I wondered how to make the Spark Gateway run
as a service on a Windows Server so that it could be running 24x7 even
when no user is logged into the server.

Thanks,
Simon

Support Remote

unread,
Aug 3, 2011, 4:28:03 PM8/3/11
to androi...@googlegroups.com
Hi Simon,

Please try this one:


It's confirmed work with SparkGateway.

Regards,

Walter


--
You received this message because you are subscribed to the Google Groups "AndroidRemote" group.
To post to this group, send email to androi...@googlegroups.com.
To unsubscribe from this group, send email to androidremot...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/androidremote?hl=en.


Simon

unread,
Aug 4, 2011, 10:27:33 AM8/4/11
to AndroidRemote
This url has expired so the site is not active. Is there not a method
to make the Spark Gateway a service?

Simon

Support Remote

unread,
Aug 4, 2011, 11:28:38 AM8/4/11
to androi...@googlegroups.com
Hi Simon,

Please wait, I'll try to find one copy for you.

Regards,

Walter

Support Remote

unread,
Aug 4, 2011, 10:55:59 PM8/4/11
to androi...@googlegroups.com
Here is a copy of ServiceEx. Please rename ServiceEx.ex_ to ServiceEx.exe.

Following are from www.serviceex.com:


ServiceEx is a freeware Windows application that allows a normal program to run as a Windows service. Currently it is command line only. A version with a GUI is forthcoming. In the meantime, configuration options are specified via an .ini file that must be created prior to running ServiceEx.

ServiceEx differs from Microsoft's srvany in that it monitors the program and relaunches it whenever it shuts down for any reason. If you do not wish to have this behavior, you can turn it off. A link to download it is provided below.

An example .ini file can be downloaded below. The values which can be specified are shown in the following table:

Ini File VariableDescription Possible Value(s)
ServiceExeFullPathAny valid executable pathFull path to program you want to run as a service.
optionsAny valid command line arguments Options required by the program (can be blank)
desktopWhether to show the program's interface.true or false
StartHow the service should start up (at boot, manually, or neither) Auto or Manual or Disabled
StartNowWhether ServiceEx should start the service immediately*.true or false
Note: once installed, the service should be started and stopped using the Services manager, not by running ServiceEx.

To get started with ServiceEx:

  1. Download the executable file here. No installation program is needed. Just copy the executable to any directory that you wish to keep it.
  2. Download the example .ini file here. Save it in the same directory where you saved the file ServiceEx.exe

Note: ServiceEx is free to use. It is provided with no warranties of any kind. Use at your own risk.

Thanks is due to Iain Patterson whose NSSM Service Manager provided a starting point for this software.

Questions or comments

How to Configure ServiceEx Client Restarts

By default, ServiceEx will restart the underlying application whenever it shuts down. If you do not want this behavior, you can disable it. For now, this requires modifying the registry. This is an advanced action which you should only do if you know what you are doing. Here is how you do it:
  1. Open up regedit (if you don't know how to do that, you should stop now).
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<your service name>\Parameters
  3. In the parameters list (where you see AppParameters, etc.), add a new DWORD value called "Restart", without the quotes.
  4. Make the value one of the following:
    • 0 - if you do not want ServiceEx to ever restart the application.
    • 1 - if you want ServiceEx to restart the application only when it exits with a nonzero return value.
    • 2 - if you want ServiceEx to always restart the application. This is the default behavior, so if you want it to do this, you don't need to enter this value at all.

Other Links

ServiceEx.zip

Simon

unread,
Aug 12, 2011, 12:19:29 PM8/12/11
to AndroidRemote
Thanks I will give this a try.

Simon

On Aug 4, 10:55 pm, Support Remote <supp...@toremote.com> wrote:
> Here is a copy of ServiceEx. Please rename ServiceEx.ex_ to ServiceEx.exe.
>
> Following are fromwww.serviceex.com:
>
> ServiceEx is a freeware Windows application that allows a normal program to
> run as a Windows service. Currently it is command line only. A version with
> a GUI is forthcoming. In the meantime, configuration options are specified
> via an .ini file that must be created prior to running ServiceEx.
>
> ServiceEx differs from Microsoft's srvany in that it monitors the program
> and relaunches it whenever it shuts down for any reason. If you do not wish
> to have this behavior, you can turn it off<http://www.serviceex.com/#restart>.
> A link to download it is provided below.
>
> An example .ini file can be downloaded below. The values which can be
> specified are shown in the following table:
>
> Ini File VariableDescriptionPossible Value(s)ServiceExeFullPathAny valid
> executable pathFull path to program you want to run as a service.optionsAny
> valid command line argumentsOptions required by the program (can be blank)
> desktopWhether to show the program's interface.*true* or *false*StartHow the
> service should start up (at boot, manually, or neither)*Auto* or *Manual*
>  or *Disabled*StartNowWhether ServiceEx should start the service
> immediately*.*true* or *false*Note: once installed, the service should be
> started and stopped using the Services manager, not by running ServiceEx.
>
> To get started with ServiceEx:
>
>    1. *Download* the executable file
> here<http://www.serviceex.com/files/ServiceEx.exe>.
>    No installation program is needed. Just copy the executable to any directory
>    that you wish to keep it.
>    2. Download the example .ini file
> here<http://www.serviceex.com/files/ServiceEx.ini.sample>.
>    Save it in the same directory where you saved the file ServiceEx.exe
>
> Note: ServiceEx is free to use. It is provided with no warranties of any
> kind. Use at your own risk.
>
> Thanks is due to Iain Patterson whose NSSM Service
> Manager<http://iain.cx/src/nssm/> provided
> a starting point for this software.
>
> Questions or comments <support_08062...@serviceex.com>
> How to Configure ServiceEx Client RestartsBy default, ServiceEx will restart
> the underlying application whenever it shuts down. If you do not want this
> behavior, you can disable it. For now, this requires modifying the registry.
> This is an advanced action which you should only do if you know what you are
> doing. Here is how you do it:
>
>    1. Open up regedit (if you don't know how to do that, you should stop
>    now).
>    2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<your
>    service name>\Parameters
>    3. In the parameters list (where you see AppParameters, etc.), add a new
>    DWORD value called "Restart", without the quotes.
>    4. Make the value one of the following:
>       - 0 - if you do not want ServiceEx to ever restart the application.
>       - 1 - if you want ServiceEx to restart the application only when it
>       exits with a nonzero return value.
>       - 2 - if you want ServiceEx to always restart the application. This is
>       the default behavior, so if you want it to do this, you don't
> need to enter
>       this value at all.
>
> Other Links
>
>    - Instsrv and Srvany downloads (part of Windows Resource Kit Tools):
>       1. For Windows XP or Server
> 2003<http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57f...>
>       2. For Windows 2000, you have to download an older resource
> kit.<ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt35/i386/I3...>.
>       Don't "run" the file i386.exe. Save it locally then extract the files
>       with a zip utility such as WinZip. You can then rename the files
>       instsrv.ex_,srvany.ex_ and srvany.wr_ to instsrv.exe, srvany.exe and
>       srvany.wri, respectively.
>    - Setting up Hamachi VPN client to run as a
> service.<http://serviceex.com/HServiceSetup/>
>
>
>
>
>
>
>
> On Thu, Aug 4, 2011 at 9:28 AM, Support Remote <supp...@toremote.com> wrote:
> > Hi Simon,
>
> > Please wait, I'll try to find one copy for you.
>
> > Regards,
>
> > Walter
>
>  ServiceEx.zip
> 63KViewDownload
Reply all
Reply to author
Forward
0 new messages