flapjack/flapjack — pull request #603 by Hobbsee (2014-08-13 05:30:29+00:00)
Title: Pid fixes, handle exit codes correctly with GLI

This changes:

PID fixes to stop race condition when stopping and starting Flapjack

- Make the pidfile a class variable, so it exists for all functions
that try to reference it.
- Get the pid before issuing the kill, so the pid isn't always nil

Use GLI's exit_now! rather than specifying our own exit codes and printing the error