X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=911804fb6fc2d460590949eb35219ab47e2699cb;hb=66861c12e7d515f4d0e779102780d89e3fcd2a12;hp=f34346b18744cbb3cf55fb9695e90821e2886945;hpb=cca8d28295ce27b7c996b47badc6a1e3a6a34e65;p=nssm.git diff --git a/nssm.h b/nssm.h index f34346b..911804f 100644 --- a/nssm.h +++ b/nssm.h @@ -45,6 +45,7 @@ #include "console.h" #include "env.h" #include "event.h" +#include "hook.h" #include "imports.h" #include "messages.h" #include "process.h" @@ -59,6 +60,8 @@ int str_number(const TCHAR *, unsigned long *, TCHAR **); int str_number(const TCHAR *, unsigned long *); int num_cpus(); int usage(int); +const TCHAR *nssm_unquoted_imagepath(); +const TCHAR *nssm_imagepath(); #define NSSM _T("NSSM") #ifdef _WIN64 @@ -96,6 +99,9 @@ int usage(int); */ #define NSSM_KILL_THREADS_GRACE_PERIOD 1500 +/* How many milliseconds to pause after rotating logs. */ +#define NSSM_ROTATE_DELAY 0 + /* Margin of error for service status wait hints in milliseconds. */ #define NSSM_WAITHINT_MARGIN 2000 @@ -133,4 +139,10 @@ int usage(int); #define NSSM_SERVICE_CONTROL_START 0 #define NSSM_SERVICE_CONTROL_ROTATE 128 +/* How many milliseconds to wait for a hook. */ +#define NSSM_HOOK_DEADLINE 60000 + +/* How many milliseconds to wait for outstanding hooks. */ +#define NSSM_HOOK_THREAD_DEADLINE 80000 + #endif