X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=f95391d12a65f1c4a0e5523b9f8dbdecd918f2e1;hb=32a1d0fab47a050086106aac346342c70f4d985b;hp=1c78d1896270373a2ea888c204974fc76680fbd7;hpb=f7f20a0b3ecbb0e1a2eb59f95b50f0625b37c671;p=nssm.git diff --git a/nssm.h b/nssm.h index 1c78d18..f95391d 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" @@ -136,4 +137,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