summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-09-27 18:09:52 +0200
committerJohn Crispin <john@phrozen.org>2016-09-28 12:06:11 +0200
commit72f63807b3644ef7b8ab9025a02d7f509f39ad14 (patch)
treedfaa55691fcda15eb34c4a3350d7a8d9b62181b0
parent21ec2c7fb4ec4bae646456494090b8afa35ffbba (diff)
downloadprocd-72f63807b3644ef7b8ab9025a02d7f509f39ad14.tar.gz
add late variant of respawn and askconsole
Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--inittab.c8
-rw-r--r--state.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/inittab.c b/inittab.c
index ae2c431..011d7a6 100644
--- a/inittab.c
+++ b/inittab.c
@@ -228,6 +228,14 @@ static struct init_handler handlers[] = {
.name = "respawn",
.cb = rcrespawn,
.multi = 1,
+ }, {
+ .name = "askconsolelate",
+ .cb = askconsole,
+ .multi = 1,
+ }, {
+ .name = "respawnlate",
+ .cb = rcrespawn,
+ .multi = 1,
}
};
diff --git a/state.c b/state.c
index 4ad9e2d..3b56bd0 100644
--- a/state.c
+++ b/state.c
@@ -128,6 +128,8 @@ static void state_enter(void)
case STATE_RUNNING:
LOG("- init complete -\n");
+ procd_inittab_run("respawnlate");
+ procd_inittab_run("askconsolelate");
break;
case STATE_SHUTDOWN: