From e46271c1a9004e04508e992e4a4bda1f09670fc5 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 4 Dec 2015 19:05:35 +0100 Subject: [PATCH] Revert change in v2.3 listing stopped services as "paused" Stopped services are now (again) listed as "stopped" and halted services, due to a runlevel change, are listed as "halted". Several users complained that this change was just not intuitive. I agreee. Signed-off-by: Joachim Nilsson --- svc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svc.c b/svc.c index e611a926..83bcc942 100644 --- a/svc.c +++ b/svc.c @@ -407,14 +407,14 @@ int svc_clean_bootstrap(svc_t *svc) char *svc_status(svc_t *svc) { if (!svc_in_runlevel(svc, runlevel)) - return "stopped"; + return "halted"; switch (svc->state) { case SVC_WAITING_STATE: return "waiting"; case SVC_PAUSED_STATE: - return "paused"; + return "stopped"; case SVC_CONDHALT_STATE: return "nocond";