X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=nssm.h;h=f95391d12a65f1c4a0e5523b9f8dbdecd918f2e1;hb=32a1d0fab47a050086106aac346342c70f4d985b;hp=6d1f315a029e99ad8fc11320b87c75abe98d3927;hpb=e3b93d0c37ae200fa0375e4be6f435008050b385;p=nssm.git diff --git a/nssm.h b/nssm.h index 6d1f315..f95391d 100644 --- a/nssm.h +++ b/nssm.h @@ -41,8 +41,11 @@ #include #include #include "service.h" +#include "account.h" +#include "console.h" #include "env.h" #include "event.h" +#include "hook.h" #include "imports.h" #include "messages.h" #include "process.h" @@ -94,6 +97,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 @@ -131,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