From 5db2fb2c325807c67b38d18b454bbfc55b51b77f Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 20 May 2023 10:08:31 +0200 Subject: [PATCH] initctl: let -f force-skip check for built-in service When calling `initctl -b create` from a start script at bootstrap you risk blocking the boot since Finit currently cannot reply to IPC during that period. This patch allows -f to override this builtin check for the following initctl commands: - touch - show - edit - create - delete Signed-off-by: Joachim Wiberg --- src/serv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/serv.c b/src/serv.c index 570f5acb..2029ddda 100644 --- a/src/serv.c +++ b/src/serv.c @@ -41,6 +41,10 @@ static int is_builtin(char *arg) { svc_t *svc; + /* skip check, we may be in non-responsive bootstrap */ + if (iforce) + return 0; + svc = client_svc_find(arg); if (!svc) return 0;