From: Davin McCall Date: Tue, 1 Sep 2015 19:20:00 +0000 (+0100) Subject: Properly intiiatiise force_stop X-Git-Tag: v0.01~153 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8977b5ab7011289e87a2772003117e985347383;p=oweals%2Fdinit.git Properly intiiatiise force_stop --- 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;