intersystems-community / isc.onec

Caché 1C Bridge
Mozilla Public License 2.0
3 stars 0 forks source link
1c cache

# Caché 1C Bridge

License

Caché 1C Bridge is distributed under the terms of Mozilla Public License, version 2.0.

Starting a Windows service with arguments

Valid options are:

  1. net start

    • Arguments should start with a forward slash
    • Arguments are passed to the OnStart(...) method
    • Changes are transient unless custom login overrides the default OnStart(...) behaviour

      net start [service name] </arg1> </arg2> ...
  2. sc start

    • Arguments are passed to the OnStart(...) method
    • Changes are transient unless custom login overrides the default OnStart(...) behaviour

      sc start [service name] <arg1> <arg2> ...
  3. services.msc

    • General->"Start parameters:" field (when service is stopped)
    • Arguments are passed to the OnStart(...) method
    • Changes are transient unless custom login overrides the default OnStart(...) behaviour
  4. modify ImagePath registry key, either manually or programmatically.

    • Changes are permanent
  5. modify registry key via sc.exe

    • Changes are permanent

      sc config "Cache One C Bridge" binPath= "\"C:\Documents and Settings\ashcheglov\My Documents\Visual Studio 2010\Projects\isc.onec\isc.gateway.net.service\bin\x86\Debug\isc.onec.service.exe\" 9101"
  6. .NET-based service: create a separate isc.onec.service.exe.config file per service

  7. Custom service installer (subclass System.Configuration.Install.Installer)