HeSe/gsApplicationTools — pull request #2 by dalehenrich (2014-12-10 18:35:56+00:00)
Title: review my gsApplicationTools changes (significant)

@HeSe, this pull request includes the changes from PR #1.

The major change involved deleting the GemServerStarter and ZnServerStarter classes. So code was removed from the GemServer class-side and moved to the instance-side.

The side-effect of this change is to avoid having to include messages like #debugMode and #delegate in the GemServer class only because those are concepts for Zinc ...

Instead I've added a ZnGemServer subclass of GemServer where all sorts of zinc specific server specifications may be stored, like choice of logger and in process restart (for remote breakpoints) ....

GemServer itself now has all of the *boilerplate code* for starting a batch topaz server, like sigabort handling, pid file creation, remote debugging setup, etc.

The shell scripts for start and stop are greatly simplified as a result.

Finally I was able to use the location of the git checkout (or github dowdonload) to derive the location of the shell scripts so I think that at least a little bit of the mystery of figuring out where the scripts are located is removed ..... Besides, a GemServer subclass can override the script name and location if desired.