Log exit messages more intuitively.
authorIain Patterson <me@iain.cx>
Thu, 24 May 2012 12:34:53 +0000 (13:34 +0100)
committerIain Patterson <me@iain.cx>
Thu, 24 May 2012 19:33:33 +0000 (20:33 +0100)
commit2d6ca92386cff95d0332dec78257b03835f4bf06
treeba20eede4b2dc6dd3b78e411fbb7a1deb86b4aae
parent7bceb3325f17fcfcf44838f51a3d3e06ad76487d
Log exit messages more intuitively.

In the case where the application crashed and NSSM then cleaned up its
child processes the events logged were confusing.  First we'd log that
we were going to kill the process tree with exit code X then we'd log
that the service had ended with exit code X.

Logging that the application exited before doing the process tree kill
makes it clearer that the cleanup is in response to the application
exit.
service.cpp