mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
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:
1 parent
1028725079
commit
e46271c1a9
1 file changed
+2
-2
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user