mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00:00
Issue #96: Remember to track run commands having run once as well
All service/task commands are tracked by the state machine, but run commands are a bit special since they must run in sequence. Hence, we must increment their 'once' counter in service_start() instead. This should fix the issue mentioned in #96 "took a long time before the next line" -- because Finit was waiting for udevadm to reach a once count > 0, which we didn't increment. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4585aa0fb4
commit
b8e6954c46
1 file changed
+1
@@ -355,6 +355,7 @@ static int service_start(svc_t *svc)
|
|||||||
result = WEXITSTATUS(complete(svc->cmd, pid));
|
result = WEXITSTATUS(complete(svc->cmd, pid));
|
||||||
if (!svc_clean_bootstrap(svc)) {
|
if (!svc_clean_bootstrap(svc)) {
|
||||||
svc->start_time = svc->pid = 0;
|
svc->start_time = svc->pid = 0;
|
||||||
|
svc->once++;
|
||||||
svc_set_state(svc, SVC_STOPPING_STATE);
|
svc_set_state(svc, SVC_STOPPING_STATE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user