[Initng-svn] r2963 - initng/plugins/pidfile

svn at initng.thinktux.net svn at initng.thinktux.net
Tue Feb 7 11:58:32 CET 2006


Author: jimmy
Date: Tue Feb  7 11:58:32 2006
New Revision: 2963

Modified:
   initng/plugins/pidfile/initng_pidfile.c
Log:
Make pidfile plugin more indepdendent.


Modified: initng/plugins/pidfile/initng_pidfile.c
==============================================================================
--- initng/plugins/pidfile/initng_pidfile.c	(original)
+++ initng/plugins/pidfile/initng_pidfile.c	Tue Feb  7 11:58:32 2006
@@ -349,7 +349,7 @@
     S_;
 
     /* make sure this is all about a daemon */
-    if (p->pt != &T_DAEMON && s->type != &TYPE_DAEMON)
+    if(strcmp(p->pt->name, "daemon")!=0)
         return (FALSE);
 
     /* make sure this daemon is launching, if it is stopping or up do nothing */
@@ -436,7 +436,7 @@
     }
 
     /* get the process to handle */
-    p = initng_process_db_get(&T_DAEMON, s);
+    p = initng_process_db_get_by_name("daemon", s);
     if (!p)
     {
         F_("Did not find a daemon process on this service!\n");


More information about the Initng-svn mailing list