mirror of
https://github.com/troglobit/finit.git
synced 2026-10-06 15:50:12 +07:00
Only show [ OK ] startup/status if run tasks exit normally
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+4
-1
@@ -376,7 +376,10 @@ static int service_start(svc_t *svc)
|
||||
switch (svc->type) {
|
||||
case SVC_TYPE_RUN:
|
||||
svc->status = complete(svc->cmd, pid);
|
||||
result = WEXITSTATUS(svc->status);
|
||||
if (WIFEXITED(svc->status) && !WEXITSTATUS(svc->status))
|
||||
result = 0;
|
||||
else
|
||||
result = 1;
|
||||
svc->start_time = svc->pid = 0;
|
||||
svc->once++;
|
||||
svc_set_state(svc, SVC_STOPPING_STATE);
|
||||
|
||||
Reference in New Issue
Block a user