Deploying as a Windows Service

When deployed and started as a Windows service, optiSLang Web Service is executed as the Windows SYSTEM user. That means:

  • User and project databases, project working directories, and project action databases are located in C:\Windows\system32\config\systemprofile\AppData\Roaming by default.

  • Licenses for web-based postprocessing and optiSLang execution (if optiSLang is started directly on the optiSLang Web Service machine) are acquired for the Windows SYSTEM user. This must be taken into account when configuring/deploying licenses.

To deploy the optiSLang Web Service as a Windows service:

  1. As an administrative user, open a command prompt.

  2. Switch to the optiSLang installation directory.

  3. To install the service, run the following command:

    manage_web_service.bat -i [account] [password]

    where [account] [password] is an optional account name and password.

    The optiSLang Web Service is now listed in the Windows Services application.

  4. To start the service for the first time, run the following command:

    manage_web_service.bat

    The service is configured to start automatically when Windows is started, so you only need to run this command once after installation.

  5. To stop the service, select one of the following options:

    • Run the following command

      manage_web_service.bat -t
    • Use the Windows Services application

    • Manage service actions in the optiSLang Web Service user interface

  6. To uninstall the service, run the following command:

    manage_web_service.bat -u

For version information and help, use the following command line arguments:

ArgumentDescription
-v(ersion) Print version and status information.
-h(elp) Display help information.