-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctlscript.bat
40 lines (35 loc) · 2.67 KB
/
ctlscript.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
rem START or STOP Services
rem ----------------------------------
rem Check if argument is STOP or START
if not ""%1"" == ""START"" goto stop
if exist C:\xampp\hypersonic\scripts\ctl.bat (start /MIN /B C:\xampp\server\hsql-sample-database\scripts\ctl.bat START)
if exist C:\xampp\ingres\scripts\ctl.bat (start /MIN /B C:\xampp\ingres\scripts\ctl.bat START)
if exist C:\xampp\mysql\scripts\ctl.bat (start /MIN /B C:\xampp\mysql\scripts\ctl.bat START)
if exist C:\xampp\postgresql\scripts\ctl.bat (start /MIN /B C:\xampp\postgresql\scripts\ctl.bat START)
if exist C:\xampp\apache\scripts\ctl.bat (start /MIN /B C:\xampp\apache\scripts\ctl.bat START)
if exist C:\xampp\openoffice\scripts\ctl.bat (start /MIN /B C:\xampp\openoffice\scripts\ctl.bat START)
if exist C:\xampp\apache-tomcat\scripts\ctl.bat (start /MIN /B C:\xampp\apache-tomcat\scripts\ctl.bat START)
if exist C:\xampp\resin\scripts\ctl.bat (start /MIN /B C:\xampp\resin\scripts\ctl.bat START)
if exist C:\xampp\jetty\scripts\ctl.bat (start /MIN /B C:\xampp\jetty\scripts\ctl.bat START)
if exist C:\xampp\subversion\scripts\ctl.bat (start /MIN /B C:\xampp\subversion\scripts\ctl.bat START)
rem RUBY_APPLICATION_START
if exist C:\xampp\lucene\scripts\ctl.bat (start /MIN /B C:\xampp\lucene\scripts\ctl.bat START)
if exist C:\xampp\third_application\scripts\ctl.bat (start /MIN /B C:\xampp\third_application\scripts\ctl.bat START)
goto end
:stop
echo "Stopping services ..."
if exist C:\xampp\third_application\scripts\ctl.bat (start /MIN /B C:\xampp\third_application\scripts\ctl.bat STOP)
if exist C:\xampp\lucene\scripts\ctl.bat (start /MIN /B C:\xampp\lucene\scripts\ctl.bat STOP)
rem RUBY_APPLICATION_STOP
if exist C:\xampp\subversion\scripts\ctl.bat (start /MIN /B C:\xampp\subversion\scripts\ctl.bat STOP)
if exist C:\xampp\jetty\scripts\ctl.bat (start /MIN /B C:\xampp\jetty\scripts\ctl.bat STOP)
if exist C:\xampp\hypersonic\scripts\ctl.bat (start /MIN /B C:\xampp\server\hsql-sample-database\scripts\ctl.bat STOP)
if exist C:\xampp\resin\scripts\ctl.bat (start /MIN /B C:\xampp\resin\scripts\ctl.bat STOP)
if exist C:\xampp\apache-tomcat\scripts\ctl.bat (start /MIN /B /WAIT C:\xampp\apache-tomcat\scripts\ctl.bat STOP)
if exist C:\xampp\openoffice\scripts\ctl.bat (start /MIN /B C:\xampp\openoffice\scripts\ctl.bat STOP)
if exist C:\xampp\apache\scripts\ctl.bat (start /MIN /B C:\xampp\apache\scripts\ctl.bat STOP)
if exist C:\xampp\ingres\scripts\ctl.bat (start /MIN /B C:\xampp\ingres\scripts\ctl.bat STOP)
if exist C:\xampp\mysql\scripts\ctl.bat (start /MIN /B C:\xampp\mysql\scripts\ctl.bat STOP)
if exist C:\xampp\postgresql\scripts\ctl.bat (start /MIN /B C:\xampp\postgresql\scripts\ctl.bat STOP)
:end