Decide how to handle application exit.
authorIain Patterson <me@iain.cx>
Sun, 4 Apr 2010 16:46:17 +0000 (17:46 +0100)
committerIain Patterson <me@iain.cx>
Sun, 4 Apr 2010 20:33:01 +0000 (21:33 +0100)
commitc425384408cb392f23cbef66d385e2e589a5e516
tree1093ddeaf9f47b45f9761083c16f938a92c434fb
parente437fc1db29fc193b11061c9c0e54f4b5fcc861e
Decide how to handle application exit.

When the service exits with exit code n look in
HKLM\SYSTEM\CurrentControlSet\Services\<service>\Parameters\AppExit\<n>,
falling back to the unnamed value if no such code is listed.  Parse the
(string) value of this entry as follows:

    Restart: Start the application again (NSSM default).
    Ignore:  Do nothing (srvany default).
    Exit:    Stop the service.
registry.cpp
registry.h
service.cpp
service.h