[Initng-svn] r3212 - in initng/trunk/plugins: daemon stcmd

svn at initng.thinktux.net svn at initng.thinktux.net
Sun Mar 5 21:06:43 CET 2006


Author: jimmy
Date: Sun Mar  5 21:06:42 2006
New Revision: 3212

Modified:
   initng/trunk/plugins/daemon/initng_daemon.c
   initng/trunk/plugins/stcmd/initng_stcmd.c
Log:
Also flush service_cache for service with ngc -z, so it wont confuse users.


Modified: initng/trunk/plugins/daemon/initng_daemon.c
==============================================================================
--- initng/trunk/plugins/daemon/initng_daemon.c	(original)
+++ initng/trunk/plugins/daemon/initng_daemon.c	Sun Mar  5 21:06:42 2006
@@ -1209,6 +1209,7 @@
 static int try_get_pid(active_db_h * s)
 {
     pid_t pid = -1;
+    printf("Trying to get pid of %s\n", s->name);
 
     /* Try get the pid from PIDOF is set */
     if (initng_active_db_is(&PIDOF, s))

Modified: initng/trunk/plugins/stcmd/initng_stcmd.c
==============================================================================
--- initng/trunk/plugins/stcmd/initng_stcmd.c	(original)
+++ initng/trunk/plugins/stcmd/initng_stcmd.c	Sun Mar  5 21:06:42 2006
@@ -323,6 +323,11 @@
 
     initng_active_db_del(apt);
     initng_active_db_free(apt);
+    
+    /* also flush file cache */
+    cmd_reload(arg);
+    
+    /* return happily */
     return (TRUE);
 }
 


More information about the Initng-svn mailing list