X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.h;h=4ac3d6fad77d0e238aea15299d14d8c9b79ec3e9;hb=85fe241fc72957ceb77ed2c5587189a23246d87f;hp=9208b2ecbb81c9691d3bb0065f8506d410db4ac4;hpb=0dfa0fdb3a851b1ff69a0f0b308a3e1371286a57;p=nssm.git diff --git a/service.h b/service.h index 9208b2e..4ac3d6f 100644 --- a/service.h +++ b/service.h @@ -72,11 +72,14 @@ typedef struct { HANDLE stderr_thread; unsigned long stderr_tid; bool rotate_files; + bool stdout_copy_and_truncate; + bool stderr_copy_and_truncate; unsigned long rotate_stdout_online; unsigned long rotate_stderr_online; unsigned long rotate_seconds; unsigned long rotate_bytes_low; unsigned long rotate_bytes_high; + unsigned long rotate_delay; unsigned long default_exit_action; unsigned long restart_delay; unsigned long throttle_delay; @@ -84,6 +87,7 @@ typedef struct { unsigned long kill_console_delay; unsigned long kill_window_delay; unsigned long kill_threads_delay; + bool kill_process_tree; SC_HANDLE handle; SERVICE_STATUS status; SERVICE_STATUS_HANDLE status_handle; @@ -142,5 +146,6 @@ int stop_service(nssm_service_t *, unsigned long, bool, bool); void CALLBACK end_service(void *, unsigned char); void throttle_restart(nssm_service_t *); int await_shutdown(nssm_service_t *, TCHAR *, unsigned long); +int await_startup(nssm_service_t *); #endif