This article's sole purpose is to provide information regarding the services that your Windows VPS may utilize. Below, you will find the services' configuration and log file locations, which may be useful in troubleshooting errors on your VPS. https://vintageclever200.weebly.com/blog/download-lexia-reading-at-home. Jan 09, 2018 Web config file location Windows Server Please use technology-specific Windows Server forums for areas like File Server and Storage, High Availability (Clustering), Directory Services, etc.
Configuring the properties of a Windows Service using command prompt and scripting it in a batch file is really simple and can save you from performing the same manual configuration again and again.
The sc utility comes handy to achieve this.
In the example below, we are going to configure a windows service to:
- Set the startup type as automatic.
- Run the service under a particular account
- Set the failure actions for the service and set the reset period.
- Define dependencies.
Windows Service Configuration File Free
Play legend of dragoon free. To give a more clear understanding, screenshots of the service properties UI is attached along with the scripts to set the configurations.
1. Set the startup type as automatic.
sc config 'Service1' start= auto |
![Windows Windows](/uploads/1/3/3/8/133865382/547989778.jpg)
Note here that although the Display name of the Service is myfirstservice, The actual Service name is Service1. We need to use the actual service name in the scripts to control the service properties.
https://vintageclever200.weebly.com/igo-gps-software.html. 2. Run the service under a particular account
sc config 'Service1' obj= mydomainsidharth password= MyPassword |
Redis Windows Service Config File
3.Set the failure actions for the service and set the reset period.
sc failure 'Service1' actions= restart/180000/restart/180000/'/180000 reset= 86400 |
The restart service times are in milliseconds and the reset fail count time is in seconds.
4. Define dependencies.
Our service depends on the SQL Server service, whose Actual Service name is MSSQLServer, To set this dependency, use the following command.
sc config 'Service1' depend= 'MSSQLServer' |
https://vintageclever200.weebly.com/pc-game-torrent-sites.html. Finally, to start the server use
net start Service1 |
We can also club all the command and save it as a batch file, it will look like this:
sc config 'Service1' start= auto sc config 'Service1' obj= mydomainsidharth password= MyPassword sc failure 'Service1' actions= restart/180000/restart/180000/'/180000 reset= 86400 sc config 'Service1' depend= 'MSSQLServer' net start Service1 |