Skip to content

Commit 75f61a5

Browse files
committed
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 <troglobit@gmail.com>
1 parent f4d3ec1 commit 75f61a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/serv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ static int is_builtin(char *arg)
4141
{
4242
svc_t *svc;
4343

44+
/* skip check, we may be in non-responsive bootstrap */
45+
if (force)
46+
return 0;
47+
4448
svc = client_svc_find(arg);
4549
if (!svc)
4650
return 0;

0 commit comments

Comments
 (0)