Configure processes

 


  1. Get the server id

    set serverid [$AdminConfig getid /Cell:cname/Node:nname/Server:sname/]

  2. 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]

  3. Change the working directory:

    $AdminConfig modify $processDef {{workingDirectory /home/user1}}

  4. 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}}}]

  5. Modify the process priority:

    $AdminConfig modify $processDef {{execution {{processPriority 15}}}}

  6. Modify the maximum startup attempts:

    $AdminConfig modify $processDef {{monitoringPolicy {{maximumStartupAttempts 1}}}}

  7. Save changes:

    $AdminConfig save