]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Wed, 22 Dec 2004 14:08:13 +0000 (14:08 +0000)
committerajs <ajs>
Wed, 22 Dec 2004 14:08:13 +0000 (14:08 +0000)
* watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.

watchquagga/ChangeLog
watchquagga/watchquagga.c

index 0272655b1c462a594eb4c55dcb643daf8c09e680..91541221a8e3b8a31f4617376a7751ecd62a781a 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.
+
 2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * .cvsignore: Added.
index c9b2cad8ac544b4edade9961cb5eaa811e847919..194b807a5feee9ec3d2dde411a1683f168065a21 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    $Id: watchquagga.c,v 1.1 2004/12/22 02:56:59 ajs Exp $
+    $Id: watchquagga.c,v 1.2 2004/12/22 14:08:13 ajs Exp $
 
     Monitor status of quagga daemons and restart if necessary.
 
 #include <sys/wait.h>
 
 /* Quagga headers: */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <thread.h>
 #include <log.h>
 #include <sigevent.h>
 #define DEFAULT_LOGLEVEL       LOG_INFO
 #define DEFAULT_MIN_RESTART    60
 #define DEFAULT_MAX_RESTART    600
+#ifdef PATH_WATCHQUAGGA_PID
+#define DEFAULT_PIDFILE                PATH_WATCHQUAGGA_PID
+#else
 #define DEFAULT_PIDFILE                STATEDIR "/watchquagga.pid"
+#endif
 
 #define PING_TOKEN     "PING"