There are three main system controls
identified for this thesis project offline email system which are a server
computer, mail server and database synchronize as shown in Figure 5.7. Server
computer status can be viewed through Uniform
Server system tray menu. The server computer Status button is an additional
option as an alternative to view the networking status of the server computer.
Exit button is to close the System Control Graphical User Interface and did not
affect server computer, mail server and database synchronize operation. Server
computer system control was executed through a batch file. Server computer
application script configured and placed in a Uniform Server folder.
Pemail system control Graphical User Interface (GUI) |
Figure 5.7:
Pemail system control Graphical User Interface (GUI)
There is a single central control
architecture for Uniform Server which
is located in folder UniServer\unicon\main. All server control requests such as
Unitray, batch files and Apanel are passed to this core for processing. The
advantage of this core control is to reduce external scripts complexity. These
core controls consist of four Command-line interface (CLI) scripts. CLI is a
mean of interaction in the form of lines of text (command line) to issue a
command to the program. These CLI scripts are split into two parts which are
standard program and service. Standard program part has files for start-stop
while service part has files install-uninstall service respectively. Apache and
MySQL are a tracker file controlling the interaction between standard program
part and service part as shown in Figure 5.8.
Uniform Server Core Control |
Start batch script (Start_Server.bat)
implemented as shown in Table 5.15 and Stop batch script (Stop_Server.bat) as
shown in Table 5.16.
@echo
off
cls
COLOR
B0
mode
con:cols=65 lines=20
TITLE
UNIFORM SERVER - Start
rem
###################################################
rem
# Name: Server_Start.bat
rem
# Created By: The Uniform Server Development Team
rem
# Edited Last By: Mike Gleaves (ric)
rem
# V 1.0 28-6-2009
rem
###################################################
rem
### working directory current folder
pushd
%~dp0
usr\local\php\php.exe
-n unicon\main\start_servers.php 19
Start.exe
rem
..\unicon\program\unidelay.exe 10
rem
pause
rem
### restore original working directory
popd
exit
|
Table
5.15:
Offline Server Computer Start script (Start_Server.bat)
Both script parameters
for start_servers.php and stop_servers.php line configured with binary code 19
which include the control server for Apache, Mysql and Cron as reference to Uniform
Server Binary Codes shown in Figure 5.1. "Start.exe" line is to start
the UniTray while "unicon\program\unidelay.exe 10" line gives a ten
second delay to allow text to be read [21] .
@echo
off
cls
COLOR
B0
mode
con:cols=65 lines=20
TITLE
UNIFORM SERVER - Stop
rem
###################################################
rem
# Name: Stop_Server.bat
rem
# Created By: The Uniform Server Development Team
rem
# Edited Last By: Mike Gleaves (ric)
rem
# V 1.0 28-6-2009
rem
##################################################
rem
### working directory current folder
pushd
%~dp0
usr\local\php\php.exe
-n unicon\main\stop_servers.php 19
rem
..\unicon\program\unidelay.exe 10
rem
pause
rem
### restore original working directory
popd
exit
|
Table 5.16:
Offline Server Computer Stop script (Stop_Server.bat)
Mail server
application script implemented as shown in Table 5.17. Both scripts which are
“start_hmailserver.bat” and “stop_hmailserver.bat” placed in a mail server folder
such as “…PEmailOffline\hMailServer\Bin”.
CLI script
|
Script filename
|
net
start hmailserver
exit
|
start_hmailserver.bat
|
net
stop hmailserver
exit
|
stop_hmailserver.bat
|
Table
5.17:
Mail Server Start and Stop script
“Database Synchronize”
start button will execute real-time synchronization application,
“RealtimeSync.exe” which is located in a database synchronization application
folder such as “…PEmailOffline\FreeFileSync”.
No comments:
Post a Comment