Page History
...
By default the Windows Service is configured to be started automatically. This can be changed to start manually by setting the wrapper.ntservice.starttype
property to DEMAND_START
.
Note that the service starts successfully only if the database is already running at that point.
Configuring Windows Service Dependencies
...
The component is licensed by Servoy to be bundled and used in combination with the Servoy Application Server only. It's not allowed to use the component outside the context of the Servoy Application Server.
Running the Windows Service from a Different User
A non-admin user doesn't have permission to start and stop the Servoy Application Server service. In order to have access to do that, they have to be granted permission by the administrator. This section provides information on how to grant permission to a different user to access the Servoy service.
The following steps need to be followed in order to give access to the service:
- Login to an administrator account and run a command prompt console. Make sure to run the console as administrator.
Enter the following command in the console:
Code Block C:\>sc sdshow servoyservice
The output will look something like this:
Code Block D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
Copy and paste it into a text editor.
- Get the SID (Security IDentifier) of the user accound that needs permission to access the service.
To obtain it, do the following:
a) go to Start > regedit and locate this registry path:LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
All the user accounts are displayed under this node, and the key name of each account is the SID.
b) Click on each key and look on the right panel at the ProfileImagePath to identify the user name of the account.
c) When the desired user is identified, copy its key name, that is the SID, and paste it in the text editor on a new line. - In the text editor:
a) copy the(A;;CCLCSWRPWPDTLOCRRC;;;SY)
part of the command output, and paste it right before theS:(AU;FA;...
part
b) change that part to look like this:(A;;RPWPCR;;;[SID])
- where [SID] has to be replaced by the actual user account SID
c) surround the whole resulted line with double quotes, and copy it In the command prompt, enter the
sc sdset
command and paste in the copied line. The resulted command will look like this:Code Block sc sdset servoyservice "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RPWPCR;;;S-1-5-21-30086777-1921087056-1718559101-1003)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)"
Run the command. On success, the following output should appear:
Code Block [SC] SetServiceObjectSecurity SUCCESS
After completing these steps, the non-admin user for which these settings have been done will be able to access the Application Server service.