MENU

Start CAMServer as a Windows Service

TOC

Overview of Windows Services

CAMServer can also be run as a Windows service. There are several advantages to running as a Windows service.

Advantages and Disadvantages

Advantages

  • If CAMServer crashes, it can be restarted automatically.
    *Using the "recovery" function of Windows services

demerit

  • CAMServer cannot have a window while the service is running, so some management menus cannot be executed.
    *Functions that are always used can be executed remotely from the client.

Setup Method

Check win_service in the folder structure after installation

As a service registration/deletion/start/stop script,CAMServer/win_service are located.

The role of each script is as follows

  • installSvc.vbs---Registers CAMServer as a Windows service
  • removeSvc.vbs -- Removes CAMServer registered as a service from the service.
  • startSvc.vbs--Starts CAMServer as a service
  • stopSvc.vbs---Stop CAMServer started as a service

Registering for Windows Services

To run CAMServer as a service, you must first register it as a service in Windows only once.

To register as a Windows service, manually click and start camserver.exe in the unzipped folder.
The main window will be displayed as usual, so select "Administration Menu" → "Service" → "Install Service".

When executed, the service is registered to the service as a service name "CAMServerService".

After registration, to check if the service has been successfully registered, open the Windows Service screen by following the steps below.

Open "Services" in "Control Panel

Open "Control Panel" to check.

Specify OS user to run Windows service

The OS user that runs CAMServer should be the same even if Windows Service is started; if you need to change the OS user that runs Windows Service, please refer to the following.
[Windows] Changing the user who starts the service

Auto Start Windows Services

To start the service at the same time Windows starts, set "Auto Start". On the Windows Services screen, click on the service name CAMServerService Double-click on the "Startup Type" and select "Automatic" under "Startup Type".

Automatic recovery in case of error

In the unlikely event that the CAMServer service stops, you can restart it automatically by using the Windows service recovery function.
Select CAMServer in the service settings of the management tool, and select ``Restart the service'' at the first error etc. from the ``Recovery'' tab in the properties.

Startup and shutdown

Start as Windows Service

Start the service from the control panel, or execute "Admin Menu" -> "Service" -> "Start Service" in CAMServer.

Note that it is not possible to start the service from the control panel while the camserver.exe screen is already running.
After starting the service, camserver.exe with manually started windows will automatically stop

Stop Windows Service

Stop the service from the control panel or by manually running camserver.exe to safely stop the service and then start the screen.

Manually during service startup camserver.exe If you run the service, the running service will be stopped, and if you run it manually, the service will be stopped. camserver.exe will be activated in a few seconds or so

Notes on the service version

  • The service version of CAMServer cannot have windows, so the following initial settings are made after manually starting "camserver.exe".
  • When migrating from the regular version, make sure that the startup startup of the regular version does not overlap with the "automatic startup" of the Windows service.
    The following is how to cancel the startup activation.

TOC