log: announce presence during startup

Set its restart policy to "reset".

Change-Id: I54f350d9d0d9bc571abd9630f27f4c961c7c0778
This commit is contained in:
Lionel Sambuc 2015-01-15 15:19:55 +01:00 committed by David van Moolenbroek
parent 64d15bd98e
commit 67b4718325
2 changed files with 4 additions and 2 deletions

View file

@ -69,7 +69,6 @@ static void sef_local_startup()
/* Register init callbacks. */
sef_setcb_init_fresh(sef_cb_init_fresh);
sef_setcb_init_lu(sef_cb_init_fresh);
sef_setcb_init_restart(sef_cb_init_fresh);
/* Register live update callbacks. */
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. */
sys_diagctl_register();
/* Announce we are up! */
chardriver_announce();
return(OK);
}

View file

@ -94,7 +94,7 @@ service_get_policies(struct policies * pol, index_t slot)
{ .label = "vnd", .policy_str = "reset" },
/* system */
{ .label = "gpio", .policy_str = "restart" },
{ .label = "log", .policy_str = "restart" },
{ .label = "log", .policy_str = "reset" },
{ .label = "random", .policy_str = "restart" },
/* tty */
{ .label = "pty", .policy_str = "restart" },