]> Zhao Yanbai Git Server - minix.git/commitdiff
log: announce presence during startup 15/3015/1
authorLionel Sambuc <lionel@minix3.org>
Thu, 15 Jan 2015 14:19:55 +0000 (15:19 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 29 Jun 2015 10:57:38 +0000 (10:57 +0000)
Set its restart policy to "reset".

Change-Id: I54f350d9d0d9bc571abd9630f27f4c961c7c0778

minix/drivers/system/log/log.c
minix/fs/procfs/service.c

index df267aec2a80d69b54308c321ac3392571a2ffd4..caba7cf3d372d7d64c46d887019e1dd39728e42c 100644 (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);
 }
 
index 06db732d79dcf58df8ffedc24cba8c275a875f3f..2d3d71f52748b2b5233355a204d5cc717df8ec33 100644 (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" },