Configure processes
- Get the server id
set serverid [$AdminConfig getid /Cell:cname/Node:nname/Server:sname/]- Get process definition ids belonging to this server using one of the following methods:
set processDef [$AdminConfig list JavaProcessDef $serverid]
set processDef [$AdminConfig showAttribute $serverid processDefinition]- Change the working directory:
$AdminConfig modify $processDef {{workingDirectory /home/user1}}- Modify the stderr file name:
set errFile [list stderrFilename \${LOG_ROOT}/servername/new_stderr.log]
set attr [list $errFile]
$AdminConfig modify $processDef [subst {{ioRedirect {$attr}}}]- Modify the process priority:
$AdminConfig modify $processDef {{execution {{processPriority 15}}}}- Modify the maximum startup attempts:
$AdminConfig modify $processDef {{monitoringPolicy {{maximumStartupAttempts 1}}}}- Save changes:
$AdminConfig save