+int stop_service(unsigned long exitcode, bool graceful, bool default_action) {\r
+ if (default_action && ! exitcode && ! graceful) {\r
+ log_event(EVENTLOG_INFORMATION_TYPE, NSSM_EVENT_GRACEFUL_SUICIDE, service_name, exe, exit_action_strings[NSSM_EXIT_UNCLEAN], exit_action_strings[NSSM_EXIT_UNCLEAN], exit_action_strings[NSSM_EXIT_UNCLEAN], exit_action_strings[NSSM_EXIT_REALLY] ,0);\r
+ graceful = true;\r
+ }\r
+\r