From a8977b5ab7011289e87a2772003117e985347383 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 1 Sep 2015 20:20:00 +0100 Subject: [PATCH] Properly intiiatiise force_stop --- service.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/service.h b/service.h index 599b4ee..f57e1ca 100644 --- a/service.h +++ b/service.h @@ -129,7 +129,7 @@ class ServiceRecord public: ServiceRecord(ServiceSet *set, string name) - : service_state(SVC_STOPPED), desired_state(SVC_STOPPED) + : service_state(SVC_STOPPED), desired_state(SVC_STOPPED), force_stop(false), auto_restart(false) { service_set = set; service_name = name; @@ -138,13 +138,12 @@ class ServiceRecord ServiceRecord(ServiceSet *set, string name, int service_type, string command, std::list * pdepends_on) - : service_state(SVC_STOPPED), desired_state(SVC_STOPPED) + : service_state(SVC_STOPPED), desired_state(SVC_STOPPED), force_stop(false), auto_restart(false) { service_set = set; service_name = name; this->service_type = service_type; program_name = command; - auto_restart = false; // TODO splice the contents from the depends_on parameter // rather than duplicating the list. this->depends_on = *pdepends_on; -- 2.25.1