From 16f6511e94c3765725b196aacaf6053385bca8a3 Mon Sep 17 00:00:00 2001 From: ajs Date: Wed, 22 Dec 2004 15:37:44 +0000 Subject: 2004-12-22 Andrew J. Schorr * watchquagga.c: Use new config.h define for DAEMON_VTY_DIR. --- watchquagga/ChangeLog | 4 ++++ watchquagga/watchquagga.c | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'watchquagga') diff --git a/watchquagga/ChangeLog b/watchquagga/ChangeLog index 91541221..cc9ac227 100644 --- a/watchquagga/ChangeLog +++ b/watchquagga/ChangeLog @@ -1,3 +1,7 @@ +2004-12-22 Andrew J. Schorr + + * watchquagga.c: Use new config.h define for DAEMON_VTY_DIR. + 2004-12-22 Andrew J. Schorr * watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h. diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c index 194b807a..e16b9c25 100644 --- a/watchquagga/watchquagga.c +++ b/watchquagga/watchquagga.c @@ -1,5 +1,5 @@ /* - $Id: watchquagga.c,v 1.2 2004/12/22 14:08:13 ajs Exp $ + $Id: watchquagga.c,v 1.3 2004/12/22 15:37:44 ajs Exp $ Monitor status of quagga daemons and restart if necessary. @@ -63,6 +63,11 @@ #else #define DEFAULT_PIDFILE STATEDIR "/watchquagga.pid" #endif +#ifdef DAEMON_VTY_DIR +#define VTYDIR DAEMON_VTY_DIR +#else +#define VTYDIR STATEDIR +#endif #define PING_TOKEN "PING" @@ -142,7 +147,7 @@ static struct global_state { } gs = { .mode = MODE_MONITOR, .phase = PHASE_NONE, - .vtydir = STATEDIR, + .vtydir = VTYDIR, .period = 1000*DEFAULT_PERIOD, .timeout = DEFAULT_TIMEOUT, .restart_timeout = DEFAULT_RESTART_TIMEOUT, @@ -323,7 +328,7 @@ Options:\n\ -h, --help Display this help and exit\n\ ", progname,mode_str[0],progname,mode_str[1],progname,mode_str[2], progname,mode_str[3],progname,mode_str[4],progname,mode_str[2],mode_str[3], -STATEDIR,DEFAULT_LOGLEVEL,LOG_EMERG,LOG_DEBUG,LOG_DEBUG, +VTYDIR,DEFAULT_LOGLEVEL,LOG_EMERG,LOG_DEBUG,LOG_DEBUG, DEFAULT_MIN_RESTART,DEFAULT_MAX_RESTART, DEFAULT_PERIOD,DEFAULT_TIMEOUT,DEFAULT_RESTART_TIMEOUT,DEFAULT_PIDFILE); -- cgit v1.2.1