2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afs/param.h>
12 #include <sys/types.h>
23 #include <WINNT/afsevent.h>
26 #include <netinet/in.h>
28 #endif /* AFS_NT40_ENV */
29 #include <afs/cellconfig.h>
32 #include <rx/rx_globals.h>
37 #include <afs/ktime.h>
38 #include <afs/afsutil.h>
39 #include <afs/fileutil.h>
40 #include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
41 #if defined(AFS_SGI_ENV)
42 #include <afs/afs_args.h>
46 #define BOZO_LWP_STACKSIZE 16000
47 extern int BOZO_ExecuteRequest();
48 extern int RXSTATS_ExecuteRequest();
49 extern int afsconf_GetKey();
50 extern struct bnode_ops fsbnode_ops, ezbnode_ops, cronbnode_ops;
51 struct afsconf_dir *bozo_confdir = 0; /* bozo configuration dir */
52 static char *bozo_pid;
53 struct rx_securityClass *bozo_rxsc[3];
54 const char *bozo_fileName;
56 extern int rx_stackSize; /* for rx_SetStackSize macro */
61 int DoSyslogFacility = LOG_DAEMON;
63 static afs_int32 nextRestart;
64 static afs_int32 nextDay;
66 struct ktime bozo_nextRestartKT, bozo_nextDayKT;
68 #ifdef BOS_RESTRICTED_MODE
69 int bozo_isrestricted=0;
70 int bozo_restdisable=0;
72 void bozo_insecureme(int sig)
74 signal(SIGFPE, bozo_insecureme);
84 /* check whether caller is authorized to manage RX statistics */
85 int bozo_rxstat_userok(call)
88 return afsconf_SuperUser(bozo_confdir, call, (char *)0);
91 /* restart bozo process */
94 /* exit with restart code; SCM integrator process will restart bosserver */
95 int status = BOSEXIT_RESTART;
97 /* if noauth flag is set, pass "-noauth" to new bosserver */
98 if (afsconf_GetNoAuthFlag(bozo_confdir)) {
99 status |= BOSEXIT_NOAUTH_FLAG;
101 /* if logging is on, pass "-log" to new bosserver */
103 status |= BOSEXIT_LOGGING_FLAG;
107 /* exec new bosserver process */
111 argv[i] = (char *)AFSDIR_SERVER_BOSVR_FILEPATH;
114 /* if noauth flag is set, pass "-noauth" to new bosserver */
115 if (afsconf_GetNoAuthFlag(bozo_confdir)) {
119 /* if logging is on, pass "-log" to new bosserver */
126 /* if syslog logging is on, pass "-syslog" to new bosserver */
128 char *arg=(char *)malloc(40); /* enough for -syslog=# */
129 if ( DoSyslogFacility != LOG_DAEMON ) {
130 snprintf(arg, 40, "-syslog=%d", DoSyslogFacility);
132 strcpy(arg, "-syslog");
139 /* null-terminate argument list */
142 /* close random fd's */
143 for (i = 3; i < 64; i++) {
147 execv(argv[0], argv); /* should not return */
149 #endif /* AFS_NT40_ENV */
152 /* make sure a dir exists */
154 register char *adir; {
156 register afs_int32 code;
157 if (stat(adir, &tstat) < 0 || (tstat.st_mode & S_IFMT) != S_IFDIR) {
160 reqPerm = GetRequiredDirPerm (adir);
161 if (reqPerm == -1) reqPerm = 0777;
163 /* underlying filesystem may not support directory protection */
166 code = mkdir(adir, reqPerm);
173 /* create all the bozo dirs */
174 static CreateDirs() {
176 MakeDir(AFSDIR_USR_DIRPATH);
177 MakeDir(AFSDIR_SERVER_AFS_DIRPATH);
178 MakeDir(AFSDIR_SERVER_BIN_DIRPATH);
179 MakeDir(AFSDIR_SERVER_ETC_DIRPATH);
180 MakeDir(AFSDIR_SERVER_LOCAL_DIRPATH);
181 MakeDir(AFSDIR_SERVER_DB_DIRPATH);
182 MakeDir(AFSDIR_SERVER_LOGS_DIRPATH);
184 MakeDir(AFSDIR_CLIENT_VICE_DIRPATH);
185 MakeDir(AFSDIR_CLIENT_ETC_DIRPATH);
187 symlink(AFSDIR_SERVER_THISCELL_FILEPATH, AFSDIR_CLIENT_THISCELL_FILEPATH);
188 symlink(AFSDIR_SERVER_CELLSERVDB_FILEPATH, AFSDIR_CLIENT_CELLSERVDB_FILEPATH);
189 #endif /* AFS_NT40_ENV */
193 /* strip the \\n from the end of the line, if it is present */
194 static StripLine(abuffer)
195 register char *abuffer; {
198 tp = abuffer + strlen(abuffer); /* starts off pointing at the null */
199 if(tp == abuffer) return 0; /* null string, no last character to check */
200 tp--; /* aim at last character */
201 if (*tp == '\n') *tp = 0;
205 /* write one bnode's worth of entry into the file */
206 static bzwrite(abnode, at)
207 register struct bnode *abnode;
208 register struct bztemp *at; {
210 char tbuffer[BOZO_BSSIZE];
211 register afs_int32 code;
213 if (abnode->notifier)
214 fprintf(at->file, "bnode %s %s %d %s\n",
215 abnode->type->name, abnode->name, abnode->fileGoal, abnode->notifier);
217 fprintf(at->file, "bnode %s %s %d\n", abnode->type->name, abnode->name, abnode->fileGoal);
219 code = bnode_GetParm(abnode, i, tbuffer, BOZO_BSSIZE);
221 if (code != BZDOM) return code;
224 fprintf(at->file, "parm %s\n", tbuffer);
226 fprintf(at->file, "end\n");
233 register FILE *tfile;
234 char tbuffer[BOZO_BSSIZE];
236 char *instp, *typep, *notifier, *notp;
237 register afs_int32 code;
238 afs_int32 ktmask, ktday, kthour, ktmin, ktsec;
241 char *parms[MAXPARMS];
242 #ifdef BOS_RESTRICTED_MODE
246 /* rename BozoInit to BosServer for the user */
248 /* if BozoInit exists and BosConfig doesn't, try a rename */
249 if (access(AFSDIR_SERVER_BOZINIT_FILEPATH, 0) == 0
250 && access(AFSDIR_SERVER_BOZCONF_FILEPATH, 0) != 0) {
251 code = renamefile(AFSDIR_SERVER_BOZINIT_FILEPATH, AFSDIR_SERVER_BOZCONF_FILEPATH);
253 perror("bosconfig rename");
255 #ifdef BOS_NEW_CONFIG
256 if (access(AFSDIR_SERVER_BOZCONFNEW_FILEPATH, 0) == 0) {
257 code = renamefile(AFSDIR_SERVER_BOZCONFNEW_FILEPATH,
258 AFSDIR_SERVER_BOZCONF_FILEPATH);
260 perror("bosconfig rename");
265 /* setup default times we want to do restarts */
266 bozo_nextRestartKT.mask = KTIME_HOUR | KTIME_MIN | KTIME_DAY;
267 bozo_nextRestartKT.hour = 4; /* 4 am */
268 bozo_nextRestartKT.min = 0;
269 bozo_nextRestartKT.day = 0; /* Sunday */
270 bozo_nextDayKT.mask = KTIME_HOUR | KTIME_MIN;
271 bozo_nextDayKT.hour = 5;
272 bozo_nextDayKT.min = 0;
274 for(code=0;code<MAXPARMS;code++)
275 parms[code] = (char *) 0;
276 instp = typep = notifier = (char *) 0;
278 if (!aname) aname = (char *)bozo_fileName;
279 tfile = fopen(aname, "r");
282 instp = (char *) malloc(BOZO_BSSIZE);
283 typep = (char *) malloc(BOZO_BSSIZE);
284 notifier = notp = (char *) malloc(BOZO_BSSIZE);
286 /* ok, read lines giving parms and such from the file */
287 tp = fgets(tbuffer, sizeof(tbuffer), tfile);
288 if (tp == (char *) 0) break; /* all done */
290 if (strncmp(tbuffer, "restarttime", 11) == 0) {
291 code = sscanf(tbuffer, "restarttime %d %d %d %d %d",
292 &ktmask, &ktday, &kthour, &ktmin, &ktsec);
297 /* otherwise we've read in the proper ktime structure; now assign
298 it and continue processing */
299 bozo_nextRestartKT.mask = ktmask;
300 bozo_nextRestartKT.day = ktday;
301 bozo_nextRestartKT.hour = kthour;
302 bozo_nextRestartKT.min = ktmin;
303 bozo_nextRestartKT.sec = ktsec;
307 if (strncmp(tbuffer, "checkbintime", 12) == 0) {
308 code = sscanf(tbuffer, "checkbintime %d %d %d %d %d",
309 &ktmask, &ktday, &kthour, &ktmin, &ktsec);
314 /* otherwise we've read in the proper ktime structure; now assign
315 it and continue processing */
316 bozo_nextDayKT.mask = ktmask; /* time to restart the system */
317 bozo_nextDayKT.day = ktday;
318 bozo_nextDayKT.hour = kthour;
319 bozo_nextDayKT.min = ktmin;
320 bozo_nextDayKT.sec = ktsec;
324 #ifdef BOS_RESTRICTED_MODE
325 if (strncmp(tbuffer, "restrictmode", 12) == 0) {
326 code = sscanf(tbuffer, "restrictmode %d",
332 if (rmode !=0 && rmode != 1) {
336 bozo_isrestricted=rmode;
341 if (strncmp("bnode", tbuffer, 5) != 0) {
346 code = sscanf(tbuffer, "bnode %s %s %d %s", typep, instp, &goal, notifier);
350 } else if (code == 3)
351 notifier = (char *)0;
353 for(i=0;i<MAXPARMS;i++) {
354 /* now read the parms, until we see an "end" line */
355 tp = fgets(tbuffer, sizeof(tbuffer), tfile);
361 if (!strncmp(tbuffer, "end", 3)) break;
362 if (strncmp(tbuffer, "parm ", 5)) {
364 goto fail; /* no "parm " either */
366 if (!parms[i]) /* make sure there's space */
367 parms[i] = (char *) malloc(BOZO_BSSIZE);
368 strcpy(parms[i], tbuffer+5); /* remember the parameter for later */
371 /* ok, we have the type and parms, now create the object */
372 code = bnode_Create(typep, instp, &tb, parms[0], parms[1], parms[2],
373 parms[3], parms[4], notifier,
374 goal ? BSTAT_NORMAL : BSTAT_SHUTDOWN);
377 /* bnode created in 'temporarily shutdown' state;
378 check to see if we are supposed to run this guy,
379 and if so, start the process up */
381 bnode_SetStat(tb, BSTAT_NORMAL); /* set goal, taking effect immediately */
384 bnode_SetStat(tb, BSTAT_SHUTDOWN);
391 if (instp) free(instp);
392 if (typep) free(typep);
393 for(i=0;i<MAXPARMS;i++) if (parms[i]) free(parms[i]);
394 if (tfile) fclose(tfile);
398 /* write a new bozo file */
401 register FILE *tfile;
402 char tbuffer[AFSDIR_PATH_MAX];
403 register afs_int32 code;
406 if (!aname) aname = (char *)bozo_fileName;
407 strcpy(tbuffer, aname);
408 strcat(tbuffer, ".NBZ");
409 tfile = fopen(tbuffer, "w");
410 if (!tfile) return -1;
412 #ifdef BOS_RESTRICTED_MODE
413 fprintf(tfile, "restrictmode %d\n", bozo_isrestricted);
415 fprintf(tfile, "restarttime %d %d %d %d %d\n", bozo_nextRestartKT.mask,
416 bozo_nextRestartKT.day, bozo_nextRestartKT.hour, bozo_nextRestartKT.min,
417 bozo_nextRestartKT.sec);
418 fprintf(tfile, "checkbintime %d %d %d %d %d\n", bozo_nextDayKT.mask,
419 bozo_nextDayKT.day, bozo_nextDayKT.hour, bozo_nextDayKT.min,
421 code = bnode_ApplyInstance(bzwrite, &btemp);
422 if (code || (code = ferror(tfile))) { /* something went wrong */
427 /* close the file, check for errors and snap new file into place */
428 if (fclose(tfile) == EOF) {
432 code = renamefile(tbuffer, aname);
440 static bdrestart(abnode, arock)
441 register struct bnode *abnode;
443 register afs_int32 code;
445 if (abnode->fileGoal != BSTAT_NORMAL || abnode->goal != BSTAT_NORMAL)
446 return 0; /* don't restart stopped bnodes */
448 code = bnode_RestartP(abnode);
450 /* restart the dude */
451 bnode_SetStat(abnode, BSTAT_SHUTDOWN);
452 bnode_WaitStatus(abnode, BSTAT_SHUTDOWN);
453 bnode_SetStat(abnode, BSTAT_NORMAL);
455 bnode_Release(abnode);
456 return 0; /* keep trying all bnodes */
459 #define BOZO_MINSKIP 3600 /* minimum to advance clock */
460 /* lwp to handle system restarts */
461 static BozoDaemon() {
462 register afs_int32 now;
464 /* now initialize the values */
468 now = FT_ApproxTime();
470 #ifdef BOS_RESTRICTED_MODE
471 if (bozo_restdisable) {
472 bozo_Log("Restricted mode disabled by signal\n");
476 if (bozo_newKTs) { /* need to recompute restart times */
477 bozo_newKTs = 0; /* done for a while */
478 nextRestart = ktime_next(&bozo_nextRestartKT, BOZO_MINSKIP);
479 nextDay = ktime_next(&bozo_nextDayKT, BOZO_MINSKIP);
482 /* see if we should do a restart */
483 if (now > nextRestart) {
484 BOZO_ReBozo(0); /* doesn't come back */
487 /* see if we should restart a server */
489 nextDay = ktime_next(&bozo_nextDayKT, BOZO_MINSKIP);
491 /* call the bnode restartp function, and restart all that require it */
492 bnode_ApplyInstance(bdrestart, 0);
498 static tweak_config()
502 int s, sb_max, ipfragttl;
506 f = popen("/usr/sbin/no -o sb_max", "r");
507 s = fscanf(f, "sb_max = %d", &sb_max);
511 f = popen("/usr/sbin/no -o ipfragttl", "r");
512 s = fscanf(f, "ipfragttl = %d", &ipfragttl);
522 sprintf(c, "/usr/sbin/no -o sb_max=%d -o ipfragttl=%d", sb_max, ipfragttl);
529 * This routine causes the calling process to go into the background and
530 * to lose its controlling tty.
532 * It does not close or otherwise alter the standard file descriptors.
534 * It writes warning messages to the standard error output if certain
535 * fundamental errors occur.
537 * This routine requires
539 * #include <sys/types.h>
540 * #include <sys/stat.h>
542 * #include <unistd.h>
543 * #include <stdlib.h>
545 * and has been tested on:
561 * A process is a process group leader if its process ID
562 * (getpid()) and its process group ID (getpgrp()) are the same.
566 * To create a new session (and thereby lose our controlling
567 * terminal) we cannot be a process group leader.
569 * To guarantee we are not a process group leader, we fork and
570 * let the parent process exit.
573 if (getpid() == getpgrp()) {
578 abort(); /* leave footprints */
582 default: /* parent */
589 * By here, we are not a process group leader, so we can make a
590 * new session and become the session leader.
594 pid_t sid = setsid();
597 static char err[] = "bosserver: WARNING: setsid() failed\n";
598 write(STDERR_FILENO, err, sizeof err - 1);
603 * Once we create a new session, the current process is a
604 * session leader without a controlling tty.
606 * On some systems, the first tty device the session leader
607 * opens automatically becomes the controlling tty for the
610 * So, to guarantee we do not acquire a controlling tty, we fork
611 * and let the parent process exit. The child process is not a
612 * session leader, and so it will not acquire a controlling tty
613 * even if it should happen to open a tty device.
616 if (getpid() == getpgrp()) {
621 abort(); /* leave footprints */
625 default: /* parent */
632 * check that we no longer have a controlling tty
638 fd = open("/dev/tty", O_RDONLY);
641 static char err[] = "bosserver: WARNING: /dev/tty still attached\n";
643 write(STDERR_FILENO, err, sizeof err - 1);
647 #endif /* ! AFS_NT40_ENV */
649 /* start a process and monitor it */
651 #include "AFS_component_version_number.c"
654 main (argc, argv,envp)
659 struct rx_service *tservice;
660 register afs_int32 code;
661 struct afsconf_dir *tdir;
663 struct ktc_encryptionKey tkey;
666 char namebuf[AFSDIR_PATH_MAX];
669 struct sigaction nsa;
671 /* for some reason, this permits user-mode RX to run a lot faster.
672 * we do it here in the bosserver, so we don't have to do it
673 * individually in each server.
678 * The following signal action for AIX is necessary so that in case of a
679 * crash (i.e. core is generated) we can include the user's data section
680 * in the core dump. Unfortunately, by default, only a partial core is
681 * generated which, in many cases, isn't too useful.
683 sigemptyset(&nsa.sa_mask);
684 nsa.sa_handler = SIG_DFL;
685 nsa.sa_flags = SA_FULLDUMP;
686 sigaction(SIGSEGV, &nsa, NULL);
687 sigaction(SIGABRT, &nsa, NULL);
689 #ifdef BOS_RESTRICTED_MODE
690 signal(SIGFPE, bozo_insecureme);
694 /* Initialize winsock */
695 if (afs_winsockInit() < 0) {
696 ReportErrorEventAlt(AFSEVT_SVR_WINSOCK_INIT_FAILED, 0, argv[0], 0);
697 fprintf(stderr, "%s: Couldn't initialize winsock.\n", argv[0]);
702 /* Initialize dirpaths */
703 if (!(initAFSDirPath() & AFSDIR_SERVER_PATHS_OK)) {
705 ReportErrorEventAlt(AFSEVT_SVR_NO_INSTALL_DIR, 0, argv[0], 0);
707 fprintf(stderr, "%s: Unable to obtain AFS server directory.\n", argv[0]);
711 /* some path inits */
712 bozo_fileName = AFSDIR_SERVER_BOZCONF_FILEPATH;
714 /* initialize the list of dirpaths that the bosserver has
715 * an interest in monitoring */
718 #if defined(AFS_SGI_ENV)
719 /* offer some protection if AFS isn't loaded */
720 if (syscall(AFS_SYSCALL, AFSOP_ENDLOG) < 0 && errno == ENOPKG) {
721 printf("bosserver: AFS doesn't appear to be configured in O.S..\n");
727 for(code=1;code<argc;code++) {
728 if (strcmp(argv[code], "-noauth")==0) {
729 /* set noauth flag */
732 else if (strcmp(argv[code], "-log")==0) {
733 /* set extra logging flag */
737 else if (strcmp(argv[code], "-syslog")==0) {
738 /* set syslog logging flag */
741 else if (strncmp(argv[code], "-syslog=",8)==0) {
743 DoSyslogFacility = atoi(argv[code]+8);
746 else if (strcmp(argv[code], "-enable_peer_stats")==0) {
747 rx_enablePeerRPCStats();
749 else if (strcmp(argv[code], "-enable_process_stats")==0) {
750 rx_enableProcessRPCStats();
752 #ifdef BOS_RESTRICTED_MODE
753 else if (strcmp(argv[code], "-restricted")==0) {
759 /* hack to support help flag */
762 printf("Usage: bosserver [-noauth] [-log] "
763 "[-syslog[=FACILITY]] "
764 "[-enable_peer_stats] [-enable_process_stats] "
767 printf("Usage: bosserver [-noauth] [-log] "
768 "[-enable_peer_stats] [-enable_process_stats] "
778 if (geteuid() != 0) {
779 printf("bosserver: must be run as root.\n");
786 printf("bosserver: could not init bnode package, code %d\n", code);
790 bnode_Register("fs", &fsbnode_ops, 3);
791 bnode_Register("simple", &ezbnode_ops, 1);
792 bnode_Register("cron", &cronbnode_ops, 2);
794 /* create useful dirs */
797 /* chdir to AFS log directory */
798 chdir(AFSDIR_SERVER_LOGS_DIRPATH);
801 fputs(AFS_GOVERNMENT_MESSAGE, stdout);
805 /* go into the background and remove our controlling tty */
809 #endif /* ! AFS_NT40_ENV */
812 strcpy(namebuf, AFSDIR_BOZLOG_FILE);
813 strcat(namebuf, ".old");
814 renamefile(AFSDIR_BOZLOG_FILE, namebuf); /* try rename first */
815 bozo_logFile = fopen(AFSDIR_BOZLOG_FILE, "a");
817 printf("bosserver: can't initialize log file (%s).\n",
818 AFSDIR_SERVER_BOZLOG_FILEPATH);
821 /* keep log closed normally, so can be removed */
822 fclose(bozo_logFile);
825 openlog("bosserver", LOG_PID, DoSyslogFacility);
829 /* Write current state of directory permissions to log file */
833 code = rx_Init(htons(AFSCONF_NANNYPORT));
835 bozo_Log("can't initialize rx: code=%d\n",code);
841 bozo_Log("Bos giving up, can't initialize rx\n");
845 code = LWP_CreateProcess(BozoDaemon, BOZO_LWP_STACKSIZE, /* priority */ 1,
846 /* parm */0, "bozo-the-clown", &bozo_pid);
848 /* try to read the key from the config file */
849 tdir = afsconf_Open(AFSDIR_SERVER_ETC_DIRPATH);
851 /* try to create local cell config file */
852 struct afsconf_cell tcell;
853 strcpy(tcell.name, "localcell");
854 tcell.numServers = 1;
855 code = gethostname(tcell.hostName[0], MAXHOSTCHARS);
857 bozo_Log("failed to get hostname, code %d\n", errno);
860 if (tcell.hostName[0][0] == 0) {
861 bozo_Log("host name not set, can't start\n");
862 bozo_Log("try the 'hostname' command\n");
865 bzero(tcell.hostAddr, sizeof(tcell.hostAddr)); /* not computed */
866 code = afsconf_SetCellInfo(bozo_confdir, AFSDIR_SERVER_ETC_DIRPATH, &tcell);
868 bozo_Log("could not create cell database in '%s' (code %d), quitting\n", AFSDIR_SERVER_ETC_DIRPATH, code);
871 tdir = afsconf_Open(AFSDIR_SERVER_ETC_DIRPATH);
873 bozo_Log("failed to open newly-created cell database, quitting\n");
878 /* read init file, starting up programs */
879 if (code=ReadBozoFile(0)) {
880 bozo_Log("bosserver: Something is wrong (%d) with the bos configuration file %s; aborting\n", code, AFSDIR_SERVER_BOZCONF_FILEPATH);
884 /* opened the cell databse */
886 code = afsconf_GetKey(tdir, 999, &tkey);
888 /* allow super users to manage RX statistics */
889 rx_SetRxStatUserOk(bozo_rxstat_userok);
891 /* have bcrypt key now */
893 afsconf_SetNoAuthFlag(tdir, noAuth);
895 bozo_rxsc[0] = (struct rx_securityClass *) rxnull_NewServerSecurityObject();
896 bozo_rxsc[1] = (struct rx_securityClass *) 0;
897 bozo_rxsc[2] = (struct rx_securityClass *) rxkad_NewServerSecurityObject(
898 0, tdir, afsconf_GetKey, (char *) 0);
900 /* These two lines disallow jumbograms */
901 rx_maxReceiveSize = OLD_MAX_PACKET_SIZE;
902 rxi_nSendFrags = rxi_nRecvFrags = 1;
904 tservice = rx_NewService(/* port */ 0, /* service id */ 1,
905 /*service name */ "bozo", /* security classes */ bozo_rxsc,
906 /* numb sec classes */ 3, BOZO_ExecuteRequest);
907 rx_SetMinProcs(tservice, 2);
908 rx_SetMaxProcs(tservice, 4);
909 rx_SetStackSize(tservice, BOZO_LWP_STACKSIZE); /* so gethostbyname works (in cell stuff) */
911 tservice = rx_NewService(0, RX_STATS_SERVICE_ID, "rpcstats", bozo_rxsc,
912 3, RXSTATS_ExecuteRequest);
913 rx_SetMinProcs(tservice, 2);
914 rx_SetMaxProcs(tservice, 4);
915 rx_StartServer(1); /* donate this process */
918 bozo_Log(a,b,c,d,e,f)
919 char *a, *b, *c, *d, *e, *f; {
925 syslog(LOG_INFO, a, b, c, d, e, f);
929 strcpy(tdate, ctime(&myTime)); /* copy out of static area asap */
932 /* log normally closed, so can be removed */
934 bozo_logFile=fopen(AFSDIR_SERVER_BOZLOG_FILEPATH, "a");
935 if(bozo_logFile == NULL) {
936 printf("bosserver: WARNING: problem with %s", AFSDIR_SERVER_BOZLOG_FILEPATH);
941 fprintf(bozo_logFile, "%s ", tdate);
942 fprintf(bozo_logFile, a, b, c, d, e, f);
943 fflush(bozo_logFile);
945 printf("%s ", tdate);
946 printf(a, b, c, d, e, f);
949 /* close so rm BosLog works */
950 fclose(bozo_logFile);