[Initng-svn] r1923 - initng/plugins/history
svn at initng.thinktux.net
svn at initng.thinktux.net
Thu Nov 3 23:31:22 CET 2005
Author: jimmy
Date: Thu Nov 3 23:31:22 2005
New Revision: 1923
Modified:
initng/plugins/history/initng_history.c
Log:
Fix a bug in ngc -L so that is will redisplay service *OUTPUT* again if output from the same service is printed 2 times, also it will show more actions on log
Modified: initng/plugins/history/initng_history.c
==============================================================================
--- initng/plugins/history/initng_history.c (original)
+++ initng/plugins/history/initng_history.c Thu Nov 3 23:31:22 2005
@@ -235,12 +235,22 @@
}
else
{
+ /* reset so that *OUTPUT* will be shown again */
+ latest = NULL;
+
+ /* switch the action type */
switch (current->action)
{
+ case LOADING:
case DONE:
case RUNNING:
case STARTING:
+ case STOP_MARKED:
case STOPPED:
+ case FAIL_STOPPING:
+ case STOP_DEP_FAILED:
+ case FAIL_STARTING:
+ case START_DEP_FAILED:
fprintf(fd, " %.2i:%.2i:%.2i %20s : %s\n", ts->tm_hour,
ts->tm_min, ts->tm_sec, name,
active_db_get_status_string(current->action));
More information about the Initng-svn
mailing list