[Initng-svn] r3662 - in initng/trunk: . plugins/daemon

svn at initng.thinktux.net svn at initng.thinktux.net
Tue Apr 4 11:49:19 CEST 2006


Author: jimmy
Date: Tue Apr  4 11:49:18 2006
New Revision: 3662

Modified:
   initng/trunk/cclink_install.sh
   initng/trunk/link_headers.sh
   initng/trunk/plugins/daemon/PLUGIN_DESCRIPTION
Log:
Written more PLUGIN_DESCRIPTION


Modified: initng/trunk/cclink_install.sh
==============================================================================
--- initng/trunk/cclink_install.sh	(original)
+++ initng/trunk/cclink_install.sh	Tue Apr  4 11:49:18 2006
@@ -53,6 +53,6 @@
 ln -s -f ${INITNG_DIR}/plugins/nge/nge_raw /sbin/nge_raw
 ln -s -f ${INITNG_DIR}/plugins/nge/ngde /sbin/ngde
 
-rm /lib/initng/*client.so
+mv /lib/initng/*client.so /lib
 exit 0
 exit 1

Modified: initng/trunk/link_headers.sh
==============================================================================
--- initng/trunk/link_headers.sh	(original)
+++ initng/trunk/link_headers.sh	Tue Apr  4 11:49:18 2006
@@ -4,14 +4,11 @@
 set -e
 INITNG_DIR=`pwd`
 
-# Uninstall as mutch as we can.
-rm -r -f /usr/include/initng
-
 #Install headers.
 mkdir -p /usr/include/initng
 for i in `find . -name *.h -printf "%f "`; do
-    echo "${INITNG_DIR}/$i --> /usr/include/initng/$i"
-    ln -s -f ${INITNG_DIR}/$i /usr/include/initng/$i
+    echo "${INITNG_DIR}/`find . -name $i -printf "%h/%f "` --> /usr/include/initng/$i"
+    ln -s -f ${INITNG_DIR}/`find . -name $i -printf "%h/%f "` /usr/include/initng/$i
 done
 exit 0
 exit 1

Modified: initng/trunk/plugins/daemon/PLUGIN_DESCRIPTION
==============================================================================
--- initng/trunk/plugins/daemon/PLUGIN_DESCRIPTION	(original)
+++ initng/trunk/plugins/daemon/PLUGIN_DESCRIPTION	Tue Apr  4 11:49:18 2006
@@ -1,6 +1,17 @@
-          name : 
+          name : daemon
         author : Jimmy Wennlund <jimmy.wennlund at gmail.com>
   contributors : 
       commands : 
-       options : 
-   description : 
\ No newline at end of file
+  service_type : daemon
+  rocess_types : T_DAEMON, T_KILL
+       options : pid_of, pid_file, forks, respawn, respawn_pause, respawn_rate, daemon_fail_ok
+        states : DAEMON_START_MARKED, DAEMON_STOP_MARKED, DAEMON_RUNNING,
+                 DAEMON_WAITING_FOR_START_DEP, DAEMON_WAITING_FOR_STOP_DEP,
+		 DAEMON_START_DEPS_MET, DAEMON_STOP_DEPS_MET, DAEMON_KILL,
+		 DAEMON_TERM, DAEMON_STOPPED, DAEMON_LAUNCH, DAEMON_WAIT_FOR_PID_FILE,
+		 DAEMON_WAIT_RESP_TOUT, DAEMON_START_DEPS_FAILED, DAEMON_STOP_DEPS_FAILED,
+		 DAEMON_FAIL_STARTING, DAEMON_FAIL_STOPPING, DAEMON_UP_CHECK_FAILED,
+		 DAEMON_RESPAWN_RATE_EXCEEDED
+   description : This handles the service type daemon, a daemon is a process that shud run
+                 on the computer the full time, and this plugins have checks for pidfiles
+		 and will watch if a daemons dies, or if other things happends.
\ No newline at end of file


More information about the Initng-svn mailing list