X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=README.txt;h=34bacc0183736e60293faa67c7112eeefe6c8a5c;hb=62f28c55d444d846579159133dbe091809a2c08b;hp=fc5121e38c1f989272397aff9f4a7a81d2cc00f3;hpb=cc956aacde93d93f5810ca4c0df7775d1bfe3458;p=nssm.git diff --git a/README.txt b/README.txt index fc5121e..34bacc0 100644 --- a/README.txt +++ b/README.txt @@ -572,6 +572,10 @@ resumes from standby by setting AppEvents\Power\Resume to: %NSSM_EXE% restart %NSSM_SERVICE_NAME% +To set a hook on the command line, use + + nssm set AppEvents / + Note that NSSM will abort the startup of the application if a Start/Pre hook returns exit code of 99. @@ -848,6 +852,20 @@ NSSM offers rudimentary service control features. nssm status + nssm statuscode + +The output of "nssm status" and "nssm statuscode" is a string +representing the service state, eg SERVICE_RUNNING. + +The exit code of "nssm status" will be 0 if the status was +succesfully retrieved. If the exit code is not zero there was +an error. + +The exit code of "nssm statuscode" will be the numeric value +of the service state, eg 4 for SERVICE_RUNNING. Zero is not a +valid service state code. If the exit code is zero there was +an error. + Removing services using the GUI ------------------------------- @@ -1022,6 +1040,8 @@ Thanks to Bader Aldurai for suggesting the process tree. Thanks to Christian Long for suggesting virtual accounts. Thanks to Marcin Lewandowski for spotting a bug appending to large files. Thanks to Nicolas Ducrocq for suggesting timestamping redirected output. +Thanks to Meang Akira Tanaka for suggestion and initial implementation of +the statuscode command. Licence -------