bozo: pass -rxbind on restart

Pass the -rxbind on restarts when bosserver is initially started
with the -rxbind option.

Change-Id: Ic6e884c87fcd0e8b3808a2f362d8c32177e9e2a0
Reviewed-on: http://gerrit.openafs.org/5487
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Michael Meffie 2011-09-22 11:28:17 -04:00 committed by Derrick Brashear
parent cb4d6e5e7e
commit 544ff1b295
3 changed files with 15 additions and 0 deletions

View File

@ -417,6 +417,11 @@ BosserverDoExitEvent(pid_t cpid,
restartArgv[i] = "-log";
i++;
}
if (exitCode & BOSEXIT_RXBIND_FLAG) {
/* pass "-rxbind" to new bosserver */
restartArgv[i] = "-rxbind";
i++;
}
restartArgv[i] = NULL;
}
}

View File

@ -124,6 +124,7 @@ struct bozo_bosEntryStats {
#define BOSEXIT_DORESTART(code) (((code) & ~(0xF)) == BOSEXIT_RESTART)
#define BOSEXIT_NOAUTH_FLAG 0x01
#define BOSEXIT_LOGGING_FLAG 0x02
#define BOSEXIT_RXBIND_FLAG 0x04
#endif
/* max time to wait for fileserver shutdown */

View File

@ -110,6 +110,10 @@ bozo_ReBozo(void)
if (DoLogging) {
status |= BOSEXIT_LOGGING_FLAG;
}
/* if rxbind is set, pass "-rxbind" to new bosserver */
if (rxBind) {
status |= BOSEXIT_RXBIND_FLAG;
}
exit(status);
#else
/* exec new bosserver process */
@ -129,6 +133,11 @@ bozo_ReBozo(void)
argv[i] = "-log";
i++;
}
/* if rxbind is set, pass "-rxbind" to new bosserver */
if (rxBind) {
argv[i] = "-rxbind";
i++;
}
#ifndef AFS_NT40_ENV
/* if syslog logging is on, pass "-syslog" to new bosserver */
if (DoSyslog) {