Linked Questions
17 questions linked to/from Stop and Start a service via batch or cmd file?
0 votes
1 answer
961 views
Is It Possible Start and Stop MariaDB service using NET command without Administration? [duplicate]
I have installed MariaDB 10.4 Series in Window 7. But there's no option for start/stop and restart in installation folder. So i had to stopped through services.msc tool. Hence I have created batch ...
57 votes
12 answers
88k views
System error 5 Access is denied when starting a .NET service
When I try to start a service I created in Visual Studio I receive the following error: System error 5 has occurred. Access is denied. I am running the command line with elevated privileges, so it's ...
26 votes
4 answers
59k views
Restart docker Windows 10 command line
I am trying to figure out how to restart docker in the command line so that i can make a bat script to restart it and start up a few containers. I created a dos prompt using admin access and run ...
7 votes
8 answers
9k views
Run PHP script in background on Apache start/restart(Windows Server)
I've installed Apache 2.4 with PHP 5.4 on Windows Server 2008 following instructions from this manual: Apache installing manual. Apache runs as a service now. My application requires a php websocket ...
8 votes
3 answers
47k views
Stop/Start Service - Handling STOP_PENDING and START_PENDING
How do you make your stop/start service scripts gracefully handling the services that get stuck in STOP_PENDING or START_PENDING... Related with SC STOP and START. Stop and Start a service via batch ...
1 vote
3 answers
12k views
Start a Windows service from a batch script and take appropriate action based on result
I have a .bat script that attempts to start a Windows service at the end. :start_wildfly echo. set /p wildfly_service_name="Enter Wildfly service name: " echo INFO: Starting %wildfly_service_name%... ...
1 vote
2 answers
3k views
2 parts Windows application: "windows service" + GUI to configure it
I’m working on a windows app composed of two parts: An agent, running in the background. A main application with a window to start/stop the agent and configure it. What I understand is that I should ...
0 votes
1 answer
4k views
how to check if the services stopped
I have done a batch file that stop the services, delete files, install files, and start the services. till now it didn't have any trouble. but today it failed to install the files. After a little ...
0 votes
1 answer
2k views
Check Jenkins Status Get Email When Service Goes Down
I would like to know if there is a way to periodically check the status of the jenkins service and get an email when the service goes down?
-1 votes
1 answer
2k views
How to get the startup type of a service with C #
As my client is not accustomed to using the windows services screen, I'm wondering what I do to get the type of startup of a service.
0 votes
1 answer
2k views
Terminate service using Robot Framework Process Library
I am trying to terminate a service using PID/Servicename which is already in running state in the Windows services list. I have tried "Process" Library and it works if I start a process from Robot ...
0 votes
1 answer
1k views
What is the shell command for waiting the service to finish starting?
I need a simple batch command which will wait until specified service (actually, SQL Server) is finished starting. See, the bat file runs some non-service executables which attemp to connect to the ...
0 votes
1 answer
1k views
How to debug multiple services in same solution as different users per service?
Core Question Given a solution that has multiple projects (A console app and two services, along with some shared libraries), how can I debug the solution (w/breakpoints in both web services + ...
0 votes
1 answer
674 views
java.lang.InterruptedException while running a batch file
I am trying to run a batch file which has set of services I want to restart. When I call this batch file from my Java application I get Interrupted Exception. My batch file call net stop app-service ...
1 vote
1 answer
577 views
Cannot start a VB Windows Service from batch
I created a custom windows service in Visual Basic using Visual Studios '05. The service is on our server which is running Windows Server 2003. I have installed the service, and it runs perfectly ...