Usability, a servivce stopped by a user is stopped, not blocked

The generic term for a non-running service is blocked, but a service may
be blocked for several different reasons.  When a user stops a service
with `initctl stop` the intuitive expected output from `initctl show` is
"stopped" not "blocked".

When the user later restarts the service with `initctl start` it may of
course be blocked due to wrong runlevel or a missing condition.  As can
be expected from the service's configuration.

The rest of the patch refactors the internal API names a bit to reflect
this change.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-02 15:42:44 +02:00
1 parent 516dbcc512
commit 260335a19f
4 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -480,7 +480,7 @@ char *svc_status(svc_t *svc)
return "crashed";
case SVC_BLOCK_USER:
return "blocked";
return "stopped";
case SVC_BLOCK_BUSY:
return "busy";