diff options
author | ajs <ajs> | 2004-12-22 15:37:44 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-12-22 15:37:44 +0000 |
commit | 16f6511e94c3765725b196aacaf6053385bca8a3 (patch) | |
tree | 676252c865f79871b4ddb6d340ed5a3a083ae717 /watchquagga/watchquagga.c | |
parent | 515210bdf7760b1634e9ec1e00e0126fa660bf24 (diff) |
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* watchquagga.c: Use new config.h define for DAEMON_VTY_DIR.
Diffstat (limited to 'watchquagga/watchquagga.c')
-rw-r--r-- | watchquagga/watchquagga.c | 11 |
1 files changed, 8 insertions, 3 deletions
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); |