|
Command line parameters
|
An option to directly control Apache and MySQL servers is provided by running UniControler with a command line parameter. The servers can be controlled individually or both at the same time. UniController is automatically closed after executing a command parameter.
This page covers command parameters supported by UniController.
Parameters
UniController accepts one of the following parameters:
Parameter | Description |
start_apache | Start Apache server |
stop_apache | Stop Apache server |
start_mysql | Start MySQL server |
stop_mysql | Stop MySQL server |
start_both | Starts Apache and MySQL servers |
stop_both | Stops Apache and MySQL servers |
pc_win_start | Automatic start-up Details see note 2 |
Note 1: Before starting UniCotroller with a parameter first ensure servers have been configured and function correctly. In other words start UniController normally and test the servers.
Note 2: With the exception of pc_win_start UniController is closed after executing the command line parameter.
Detailed use of pc_win_start is covered in section PC-Win start-up on the "Extra Utilities" page.
Batch file examples
Create the following batch files shown on the right and place them in folder UniServerZ.
Run each file pair for example start_apache.bat/stop_apache.bat demonstrates starting and stopping the Apache server.
Note: If the batch files are located outside of folder UniServerZ for example folder UniServerZ and batch files are located at the top-level of C drive adjust path to UniController.exe in each batch file. For example batch files for Apache become:
|
start_apache.bat
UniController.exe start_apache
pause
|
stop_apache.bat
UniController.exe stop_apache
pause
|
start_apache.bat
C:\UniServerZ\UniController.exe start_apache
pause
|
start_mysql.bat
UniController.exe start_mysql
pause
|
stop_mysql.bat
UniController.exe stop_mysql
pause
|
stop_apache.bat
C:\UniServerZ\UniController.exe stop_apache
pause
|
start_both.bat
UniController.exe start_both
pause
|
stop_both.bat
UniController.exe stop_both
pause
|
|
Note: Although absolute paths are shown (C:\UniServerZ\UniController.exe) if you wish you can use relative paths (UniServerZ\UniController.exe).
--oOo--
|