5.0-Nano: Control: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(New page: {{Nav 5.0-Nano}} '''''5.0-Nano Alternative Control''''' Uniform Server’s control architecture has been designed to be as flexible as possible. It is recognised not everyone likes tray i...)
 
mNo edit summary
 
Line 1: Line 1:
{{Nav 5.0-Nano}}
{{Nav 5.0-Nano}}
'''''5.0-Nano Alternative Control'''''
'''''Control and alternatives'''''


Uniform Server’s control architecture has been designed to be as flexible as possible. It is recognised not everyone likes tray icons but prefer batch file control to prevent tray icon clutter.
Uniform Server’s control architecture has been designed to be as flexible as possible.
 
It is recognised not everyone likes tray icons instead prefer batch file control this also prevents tray icon clutter.
 
This page covers control and control alternatives.


== Batch files ==
== Batch files ==
Line 9: Line 13:
If you wish can be copied to the server’s top folder '''UniServer''' however in order to run they require minor modification as explained below.
If you wish can be copied to the server’s top folder '''UniServer''' however in order to run they require minor modification as explained below.


The batch files can be tweaked to automatically close after a predefined time and or start UniTray. Details are provided under section Batch files and UniTray.
The batch files can be tweaked to automatically close after a predefined time and or start UniTray. Details are provided under section [[#Batch files and UniTray | '''Batch files and UniTray''']].


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 29: Line 33:


Unitray, batch files and Apanel all make requests to this core it has the advantage of reducing complexity of external scripts.
Unitray, batch files and Apanel all make requests to this core it has the advantage of reducing complexity of external scripts.
Core control is designed around four CLI scripts these are split into two groups, '''standard program''' and '''service'''. Each group is further split into two files '''start-stop''' and '''install-uninstall''' service respectively. Two-tracker (Apache and MySQL) files control interaction between these.
{|cellspacing="10"
|-
|
'''''Standard Program'''''
|
'''''Run as a Service'''''
|
'''''Tracker Files'''''
|-
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''start_servers.php'''
</div>
</div>
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''service_install_run.php'''
</div>
</div>
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''apache_tracker.txt'''
</div>
</div>
|-
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''stop_servers.php'''
</div>
</div>
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''service_stop_uninstall.php'''
</div>
</div>
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''mysql_tracker.txt'''
</div>
</div>
|-
|
'''''Fig 1'''''<br /> Core Control;
|
&nbsp;
|
<div style="position:relative;background:#666666">
<div style="position:relative;background:#e8e8e8;padding:10px;left:-4px;top:-4px;">
'''location_tracker.txt'''
</div>
</div>
|}
The above scripts access a common set of functions these have been written in vanilla PHP making them easier to understand and changeable.
'''''Note'':''' Location tracker is not interactive between the above scripts. It is shown only to emphasise its importance.


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 142: Line 210:
*To: '''Start.exe''' starts UniTray when the batch file is run.
*To: '''Start.exe''' starts UniTray when the batch file is run.


When a batch file is run its window remains open until a user presses any key. To have the window automatically close, disable the '''pause''' command using a '''“rem”'''
When a batch file is run its window remains open until a user presses any key.
 
This allows a user to view any error messages.
 
To have the window automatically close, disable the '''pause''' command using a '''“rem”'''


* Change: '''pause'''
* Change: '''pause'''
Line 151: Line 223:
* Change: '''rem unicon\program\unidelay.exe 3'''
* Change: '''rem unicon\program\unidelay.exe 3'''
* To: ''' unicon\program\unidelay.exe 3'''
* To: ''' unicon\program\unidelay.exe 3'''
'''''Note'':''' The above sets a delays of three seconds change to your own preference.


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 178: Line 252:
Uniform Server uses a central control core with binary coded server control providing maximum flexibility with minimum complexity.
Uniform Server uses a central control core with binary coded server control providing maximum flexibility with minimum complexity.


External control elements (batch files and UniTray) can override default operation by passing a parameter to the core. UniTray uses this technique for starting both servers or single server control.
External control elements (batch files and UniTray) can override default options by passing a parameter to the core. UniTray uses this technique for starting both servers or single server control.
 
There are two additional scripts [[5.0-Nano: DtDNS | '''DtDNS''']] and [[5.0-Nano: Portable Cron | '''Cron''']] designed to enhance control functionality.
 
* DtDNS provides automatic IP updating for users that have an account this effectively turns a dynamic IP address into a static IP address.
* Cron provides a background tick, on each tick runs a through a list of scripts defined by a user. This includes running the DtDNS script.


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''

Navigation menu