From 77ad2301ed5ecc72de0b44560dce7c6e53fb08e9 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 19 Jun 2018 21:39:02 +0100 Subject: [PATCH] Move stopped_reason_t to service_constants.h header. --- src/includes/service-constants.h | 15 +++++++++++++++ src/includes/service.h | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/includes/service-constants.h b/src/includes/service-constants.h index 9a5e477..884a487 100644 --- a/src/includes/service-constants.h +++ b/src/includes/service-constants.h @@ -38,4 +38,19 @@ enum class shutdown_type_t { REBOOT // Reboot system }; +/* Reasons for why service stopped */ +enum class stopped_reason_t +{ + NORMAL, + + // Start failures: + DEPFAILED, // A dependency failed to start + FAILED, // failed to start (process terminated) + EXECFAILED, // failed to start (couldn't launch process) + TIMEDOUT, // timed out when starting + + // Failure after starting: + TERMINATED // process terminated +}; + #endif diff --git a/src/includes/service.h b/src/includes/service.h index 3745c06..6585028 100644 --- a/src/includes/service.h +++ b/src/includes/service.h @@ -183,20 +183,6 @@ enum class dependency_type MILESTONE // dependency must start successfully, but once started the dependency becomes soft }; -enum class stopped_reason_t -{ - NORMAL, - - // Start failures: - DEPFAILED, // A dependency failed to start - FAILED, // failed to start (process terminated) - EXECFAILED, // failed to start (couldn't launch process) - TIMEDOUT, // timed out when starting - - // Failure after starting: - TERMINATED // process terminated -}; - /* Service dependency record */ class service_dep { -- 2.25.1