diff options
author | lon <lon> | 2000-10-05 19:11:39 +0000 |
---|---|---|
committer | lon <lon> | 2000-10-05 19:11:39 +0000 |
commit | 8f9579b1bed5a8aa9a3bddc2affe0da7e6a2bba5 (patch) | |
tree | 90435e7a818688513da1459d29984990b3522959 | |
parent | e680a1f075b9f05c55542055644ee984a4c93369 (diff) | |
download | nfs-utils-8f9579b1bed5a8aa9a3bddc2affe0da7e6a2bba5.tar.gz nfs-utils-8f9579b1bed5a8aa9a3bddc2affe0da7e6a2bba5.tar.xz nfs-utils-8f9579b1bed5a8aa9a3bddc2affe0da7e6a2bba5.zip |
Added a bitflag-based global to keep track of how statd is being run.
-rw-r--r-- | utils/statd/statd.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/statd/statd.h b/utils/statd/statd.h index 77a179a..5476d50 100644 --- a/utils/statd/statd.h +++ b/utils/statd/statd.h @@ -56,3 +56,22 @@ stat_chge SM_stat_chge; #define NOTIFY_TIMEOUT 5 /* For status-change notifications. */ #define SELECT_TIMEOUT 10 /* Max select() timeout when work to do. */ #define MAX_TRIES 5 /* Max number of tries for any host. */ + +/* + * Modes of operation - Lon + */ +extern int run_mode; +#define MODE_NODAEMON 1 /* No-daemon/foreground mode. */ +#define MODE_LOG_STDERR 2 /* in foreground mode, log to stderr */ +/*#define MODE_NOTIFY_ONLY 4*/ /* Send SM_NOTIFY to everyone monitored on + a single interface/alias */ +/* LH - notify_only mode would be for notifying hosts on an IP alias + * that just came back up, for ex, when failing over a HA service to + * another host.... */ + +/* + * Program name and version pointers -- See statd.c for the reasoning + * as to why they're global. + */ +extern char *name_p; /* program basename */ +extern char *version_p; /* program version */ |