Frequently Asked Question

Can I run CICB-Server as a service?
Last Updated 10 days ago

The program itself does not have the functionality to run as a service. However, we are considering adding this feature in a future release. In the meantime, here are some alternative methods to run CICB-Server.exe as a service.

Method 1 (Recommended)

  1. NSSM is a lightweight and user-friendly tool that runs any EXE as a Windows service. It's reliable and widely used.
  2. Steps to Use nssm:
    1. Download nssm:
      1. Go to NSSM's official website and download the appropriate version for your system.
      2. Extract the nssm.exe file to a convenient location, such as C:\Windows\System32 for easy access.
    2. Install the Service:
      1. Open a Command Prompt with Administrator privileges.
      2. Run the following command:nssm install CICB-Server
      3. A GUI window will appear:
    3. Path: Browse and select the EXE file you want to run as a service.
      1. Configure other optional settings, such as arguments, working directory, or log redirection.
    4. Start the Service:
      1. Use the following command to start the service:nssm start CICB-Server
    5. Verify the Service:
      1. Check the service status:nssm status CICB-Server
    6. Advantages of nssm:
      1. Simple configuration through a GUI or command-line interface.
      2. Supports logging and service auto-restart on failure.
      3. It is ideal for running applications that are not natively designed as services.

Method 2

  1. srvany.exe is one of the Windows Resource Kit tools. It is a utility from the Windows Resource Kit that allows the running of any EXE as a service.
  2. Steps to Use srvany:
    1. Download srvany.exe:
      • srvany.exe It is part of the Microsoft Windows Resource Kit. You can download it from trusted sources online or copy it from a Resource Kit installation.
    2. Create the Service:
      • Open a Command Prompt with Administrator privileges.
      • Use the following command to create a service:sc create MyServiceName binPath= "C:\path\to\srvany.exe"
    3. Edit the Registry:
      • Open the Windows Registry Editor (regedit).
      • Navigate to:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CICB-Server
      • Create a new subkey named Parameters under the service key.
      • Inside the Parameters Key, create the following string values:
        • Application: Set this to the full path of the EXE file you want to run.
        • AppParameters (optional): Add any command-line arguments for the EXE.
          • Example:
            • Application: C:\path\to\CICBv2\Server\server.exe
            • AppParameters: --example-argument
    4. Start the Service:
      • Use the following command to start the service:sc start CICB-Server
    5. Verify the Service:
      • Check the service status or use the Windows Services Manager to confirm that the EXE is running.
    6. Limitations of srvany:
      1. It’s an older tool and might not handle some modern EXE behaviors well.
      2. Requires manual registry editing for configuration.

Comparison

Featurenssmsrvany
Ease of UseVery easy (GUI-based configuration)More technical (requires registry edits)
Logging SupportBuilt-inNeeds custom solutions
Auto-Restart on FailureYesLimited
Modern CompatibilityActively used and reliableOlder and less flexible

Please Wait!

Please wait... it will take a second!