diff options
author | ajs <ajs> | 2004-12-22 15:08:13 +0100 |
---|---|---|
committer | ajs <ajs> | 2004-12-22 15:08:13 +0100 |
commit | 6028df528e0bba4a4d4e06d402b877e0b6b15428 (patch) | |
tree | 824fca18f249d6f7e794363639b3db13edad0fea /watchquagga | |
parent | 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu> (diff) | |
download | frr-6028df528e0bba4a4d4e06d402b877e0b6b15428.tar.xz frr-6028df528e0bba4a4d4e06d402b877e0b6b15428.zip |
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.
Diffstat (limited to 'watchquagga')
-rw-r--r-- | watchquagga/ChangeLog | 4 | ||||
-rw-r--r-- | watchquagga/watchquagga.c | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/watchquagga/ChangeLog b/watchquagga/ChangeLog index 0272655b1..91541221a 100644 --- a/watchquagga/ChangeLog +++ b/watchquagga/ChangeLog @@ -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. diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c index c9b2cad8a..194b807a5 100644 --- a/watchquagga/watchquagga.c +++ b/watchquagga/watchquagga.c @@ -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. @@ -35,6 +35,10 @@ #include <sys/wait.h> /* Quagga headers: */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <thread.h> #include <log.h> #include <sigevent.h> @@ -54,7 +58,11 @@ #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" |