Added logic to allow graceful shutdown of Tmux from CLI. This is useful for such things as scheduling a stop / start with Crontab on reboot. One function was added to controllers/Tmux.php to set the active bit within the database to true. Stop.php will start the Tmux shutdown process by setting the active bit to false. Run will call the new function setting it to true.
Corrections as per Niel
Renaming Tmux::isRunning to stopIfRunning, as it is more descriptive and allows us to have an actual ifRunning().
Updating uses of Tmux::ifRunning to ::stopIfRunning.
Update Changelog.
Deleting run.php so that start can be renamed to it.
Renaming start.php to run.php
Use realpath to get absolute path and convert to platform directory separators.
Change method name from makeActive to startRunning and make return value be true if running and false if action fails.
Adding work-around to prevent the server not found errors from tmux.
Adding new start.php which sets the running flag and starts the tmux session if needed.
Adding a script that allows passing start/stop commands to tmux.
Updating Changelog.
Fixing permissions.
Reverting change to tmux list session grep, as it doesn't appear to work the same way.
Missed a list session to revert.
Fixing quotes so variable is used.
Merge branch 'dev-test' into dev
Fix lighthttpd rewrite rule.
Update lighthttpd and apache rewrite rule to be up to date with the nginx
one.
Merge branch 'kevinlekiller-dev' into dev