Do something rational with exports_setup output
The exports_setup
command puts out messages to stdout, which not all callers deal with appropriately. For example, if you have ever manually restarted sslxmlrpc_server
you have probably noticed messages from exports_setup
popping up in your window periodically.
We should look at uses and determine if the callers should be redirecting output or whether exports_setup
itself should be using syslog to put the messages into a logfile. It is called from a surprisingly large number of places:
./tbsetup/mkgroup.in:my $EXPORTSSETUP= "$TB/sbin/exports_setup";
./tbsetup/node_update.in:my $expsetup = "$TB/sbin/exports_setup";
./tbsetup/tbswap.in: if (system("exports_setup")) {
./tbsetup/tbswap.in: if (system("exports_setup")) {
./tbsetup/checknodes_daemon.in:my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
./db/Project.pm.in:my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
./db/elabinelab_bossinit.in:mysystem("$TB/sbin/exports_setup");
./db/User.pm.in:my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
./xmlrpc/sslxmlrpc_server.py.in: if os.system(TBDIR + "/sbin/exports_setup"):
./testsuite/tbtest: tbexec("/usr/testbed/sbin/exports_setup","$path/exports_setup.log");
./account/tbacct.in:my $EXPORTSSETUP= "$TB/sbin/exports_setup";
./utils/deletenode.in: if (system("$TB/sbin/exports_setup")) {
./utils/imagetodir.in:my $EXPORTSSETUP = "$TB/sbin/exports_setup";
./utils/newnode.in:my $exports_setup = "$TB/sbin/exports_setup";
./utils/newnode.in:my $exports_rv = system "$exports_setup";
./protogeni/lib/GeniCM.pm.in:my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
./protogeni/lib/GeniUtil.pm.in:my $EXPORTSSETUP = "$TB/sbin/exports_setup";
./protogeni/lib/GeniAggregate.pm.in:my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
./www/tbauth.php3: $rv = SUEXEC("nobody", "nobody", "webexports_setup",