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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-12-04 19:05:35 +01:00
1 parent 1028725079
commit e46271c1a9
1 file changed
+2 -2
+2 -2
View File
@@ -407,14 +407,14 @@ int svc_clean_bootstrap(svc_t *svc)
char *svc_status(svc_t *svc) char *svc_status(svc_t *svc)
{ {
if (!svc_in_runlevel(svc, runlevel)) if (!svc_in_runlevel(svc, runlevel))
return "stopped"; return "halted";
switch (svc->state) { switch (svc->state) {
case SVC_WAITING_STATE: case SVC_WAITING_STATE:
return "waiting"; return "waiting";
case SVC_PAUSED_STATE: case SVC_PAUSED_STATE:
return "paused"; return "stopped";
case SVC_CONDHALT_STATE: case SVC_CONDHALT_STATE:
return "nocond"; return "nocond";