|
From: Bob T. <bt...@us...> - 2003-12-12 19:14:32
|
Update of /cvsroot/benson/benson3/src
In directory sc8-pr-cvs1:/tmp/cvs-serv22671/src
Modified Files:
bensond.c
Log Message:
latest changes
Index: bensond.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/bensond.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** bensond.c 8 Nov 2003 20:43:19 -0000 1.31
--- bensond.c 12 Dec 2003 19:14:28 -0000 1.32
***************
*** 6,12 ****
--- 6,29 ----
*/
+ #include "bensond.h"
#include "benson/benson.h"
#include "benson/cfgctl.h"
+ int usage(void) {
+ printf("Benson Distributed Monitoring System (%s %s)\n", PACKAGE, VERSION);
+ printf("Copyright (C) 1999, 2000, 2001, 2002, 2003 Bob Tribit\n\n");
+ printf("This program is distributed in the hope that it will be useful,\n");
+ printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
+ printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n");
+ printf("GNU General Public License for more details.\n\n");
+ printf("Usage: bensond [options]\n");
+ printf("Invoke the benson daemon(s). NOTE: This is usually done via bensonctl\n\n");
+ printf(" -D required for daemon to be invoked\n");
+ printf(" -V display version information\n\n");
+ printf("Report bugs to <ben...@ne...>\n");
+
+ exit(EXIT_FAILURE);
+ }
+
int
start(char *filename) {
***************
*** 33,37 ****
int main(int argc, char *argv[], char *env[])
{
! int rc;
char benson_mode[DVALUE_LENGTH];
--- 50,54 ----
int main(int argc, char *argv[], char *env[])
{
! int rc = 0;
char benson_mode[DVALUE_LENGTH];
***************
*** 56,60 ****
if(!strcmp(argv[0], "bn_network")) {
bn_network_daemon();
- // bn_network_daemon(argc,argv,env);
syslog(LOG_ERR, "bn_network process returned unexpectedly.");
closelog();
--- 73,76 ----
|