mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07: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:
@@ -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