Pass the -rxbind on restarts when bosserver is initially started
with the -rxbind option.
Reviewed-on: http://gerrit.openafs.org/5487
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit
544ff1b295a57b50afefa6146094434db7608355)
Change-Id: I042cce8043bb0797b5c654118c2254f93903a4fa
Reviewed-on: http://gerrit.openafs.org/5536
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
restartArgv[i] = "-log";
i++;
}
+ if (exitCode & BOSEXIT_RXBIND_FLAG) {
+ /* pass "-rxbind" to new bosserver */
+ restartArgv[i] = "-rxbind";
+ i++;
+ }
restartArgv[i] = NULL;
}
}
#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 */
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 */
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) {