To override the setting of the -logconfigloc startup parameter for a metadata configured CONNECT Spawner in SAS 9.4, you should be able to edit the ./ConnectSpawner_usermods.sh file and set -logconfigloc to the following new value:
USERMODS_OPTIONS=(-shell -logconfigloc /..../Lev?/ConnectSpawner/logconfig.trace.xml)
However, this override does not work because the ./ConnectSpawner.sh sets the default -logconfigloc after the $USERMODS_OPTIONS in the CONNECT Spawner's launch command. See the highlighted change.
For example:
CMD_OPTIONS=" -sspi $USERMODS_OPTIONS"
....
nohup $CNCTCMD $CMD_OPTIONS ..... -logconfigloc $CONFIGDIR/logconfig.xml -sasspawnercn "$SPWNNAME" > $LOGSDIR/connectspawner_hostname_console.log 2>&1 &
You can use either of these workarounds:
Workaround 1:
Workaround 2:
For example:
nohup $CNCTCMD ..... -logconfigloc $CONFIGDIR/logconfig.xml $CMD_OPTIONS -sasspawnercn "$SPWNNAME" > $LOGSDIR/connectspawner_hostname_console.log 2>&1 &
nohup $CNCTCMD ... -service $CONNPORT -logconfigloc $CONFIGDIR/logconfig.xml $CMD_OPTIONS -mgmtPort "$MGMTPORT" -sascmd $SASCMD > $LOGSDIR/connectspawner_hostname_console.log 2>&1 &