Sample configurations

Configuration 1

Process usr_lib_sendmail (

PathName = "/usr/lib/sendmail"

Arguments = "bd q1h"

)

Configuration 2

include "types.cf"

cluster ProcessCluster (

.

.

.

group ProcessGroup (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

Process Process1 (

PathName = "/usr/local/bin/myprog"

Arguments = "arg1 arg2"

)

Process Process2 (

PathName = "/bin/csh"

Arguments = "/tmp/funscript/myscript"

)

// resource dependency tree

//

// group ProcessGroup

// {

// Process Process1

// Process Process2

// }

Configuration for Linux

In this example, the Process agent starts, stops, and monitors sendmail. This process is started with two arguments as determined in the Arguments attribute. The pid stored in the PidFile attribute is used to monitor the sendmail process.

<resource name="sendmail" type="Process">

<attribute name="Arguments"><scalar>"-bd -q30m" </scalar></attribute>

<attribute name="PathName"><scalar>"/usr/sbin/sendmail" </scalar></attribute>

<attribute name="PidFile"><scalar>"/var/run/sendmail.pid" </scalar></attribute>

</resource>

Process sendmail (

PathName = "/usr/sbin/sendmail"

Arguments = "-bd -q30m"

PidFile = "/var/run/sendmail.pid"

)

Configuration 1

Process sendmail1 (

PathName = "/usr/sbin/sendmail"

Arguments = "-bd -q30m"

User = root

Priority = 10

PidFile = "/etc/mail/sendmail.pid"

)

Sample configuration 2

include "types.cf"

cluster ProcessCluster (

.

.

.

group ProcessGroup (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

Process Process1 (

PathName = "/usr/local/bin/myprog"

Arguments = "arg1 arg2"

)

Process Process2 (

PathName = "/bin/csh"

Arguments = "/tmp/funscript/myscript"

)

// resource dependency tree

//

// group ProcessGroup

// {

// Process Process1

// Process Process2

// }