log: announce presence during startup
Set its restart policy to "reset". Change-Id: I54f350d9d0d9bc571abd9630f27f4c961c7c0778
This commit is contained in:
parent
64d15bd98e
commit
67b4718325
2 changed files with 4 additions and 2 deletions
|
@ -69,7 +69,6 @@ static void sef_local_startup()
|
||||||
/* Register init callbacks. */
|
/* Register init callbacks. */
|
||||||
sef_setcb_init_fresh(sef_cb_init_fresh);
|
sef_setcb_init_fresh(sef_cb_init_fresh);
|
||||||
sef_setcb_init_lu(sef_cb_init_fresh);
|
sef_setcb_init_lu(sef_cb_init_fresh);
|
||||||
sef_setcb_init_restart(sef_cb_init_fresh);
|
|
||||||
|
|
||||||
/* Register live update callbacks. */
|
/* Register live update callbacks. */
|
||||||
sef_setcb_lu_prepare(sef_cb_lu_prepare);
|
sef_setcb_lu_prepare(sef_cb_lu_prepare);
|
||||||
|
@ -102,6 +101,9 @@ static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info))
|
||||||
/* Register for diagnostics notifications. */
|
/* Register for diagnostics notifications. */
|
||||||
sys_diagctl_register();
|
sys_diagctl_register();
|
||||||
|
|
||||||
|
/* Announce we are up! */
|
||||||
|
chardriver_announce();
|
||||||
|
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ service_get_policies(struct policies * pol, index_t slot)
|
||||||
{ .label = "vnd", .policy_str = "reset" },
|
{ .label = "vnd", .policy_str = "reset" },
|
||||||
/* system */
|
/* system */
|
||||||
{ .label = "gpio", .policy_str = "restart" },
|
{ .label = "gpio", .policy_str = "restart" },
|
||||||
{ .label = "log", .policy_str = "restart" },
|
{ .label = "log", .policy_str = "reset" },
|
||||||
{ .label = "random", .policy_str = "restart" },
|
{ .label = "random", .policy_str = "restart" },
|
||||||
/* tty */
|
/* tty */
|
||||||
{ .label = "pty", .policy_str = "restart" },
|
{ .label = "pty", .policy_str = "restart" },
|
||||||
|
|
Loading…
Reference in a new issue