瀏覽代碼

Document setting hooks on the command line.

Iain Patterson 7 年之前
父節點
當前提交
91a7219acf
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      README.txt

+ 4 - 0
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 <servicename> AppEvents <event>/<action> <command>
+
 Note that NSSM will abort the startup of the application if a Start/Pre hook
 returns exit code of 99.