MPIIComputationalEpigenetics/EpiExplorer — pull request #4 by swingingsimian (2014-12-22 14:29:06+00:00)
Title: cgscontrol.sh and php config overhaul

The main 2 changes in this pull request are as follows:

1 cgscontrol.sh has been added to control the CGS server stack. Changes have been made to the CGS server classes to support this, including standardised output and writing of PIDs to a config file. The control script will bounce the entire server stack or what ever you wish to start/stop/restart whilst sending server init messages, STDOUT/ERR to a specific 'out' file in the workingFolder, whilst all log output goes to the CGS_full.log as normal. This ensures not output is lost, whilst speeding up the whole process of refreshing the server processes.

2 The web server host/port config hardcoding has be removed from all php and cgs scripts This is now written to a conf file from the CGSServer init process, which can be 'Included' in the apache httpd conf. Host and port variables are now accessed vi the environment. This change also removes the need for server.php, although I have not removed this from the repo yet in case there is something I have over-looked.

Please ignore the utilities split and temporary appearance of CGSServers.ini. I undid this after I realised it was not needed, but I had already committed by that point. Note to self: must create more feature branches in future.