Add "slow_start" keyword to init
This keyword will cause init to wait a few seconds before exec'ing
the target binary. Maybe only useful for hacks and debugging.
Change-Id: I85caa0bcbc0be7e48bd21eb9e31e039c0740c8d5
diff --git a/init/init_parser.c b/init/init_parser.c
index d136c28..1b7522c 100644
--- a/init/init_parser.c
+++ b/init/init_parser.c
@@ -131,6 +131,7 @@
if (!strcmp(s, "etkey")) return K_setkey;
if (!strcmp(s, "etprop")) return K_setprop;
if (!strcmp(s, "etrlimit")) return K_setrlimit;
+ if (!strcmp(s, "low_start")) return K_slow_start;
if (!strcmp(s, "ocket")) return K_socket;
if (!strcmp(s, "tart")) return K_start;
if (!strcmp(s, "top")) return K_stop;
@@ -564,6 +565,9 @@
case K_critical:
svc->flags |= SVC_CRITICAL;
break;
+ case K_slow_start:
+ svc->flags |= SVC_SLOW_START;
+ break;
case K_setenv: { /* name value */
struct svcenvinfo *ei;
if (nargs < 2) {