Sample configuration

This example shows how two versions of httpd can run from different locations. In group Apache_1, httpd runs from Port 80, the default location. The configuration file in /usr/local/apache/conf/httpd.conf should indicate DocumentRoot, address, port, and other parameters. In group Apache_2, httpd runs from /home/web/apache. The PID file for this is created in /home/web/apache/logs/httpd.pid. The configuration file in /home/web/apache/conf/httpd.conf should define parameters for running this version of httpd.

Each Apache resource requires an online IP resource. In this example, each Apache resource requires an online mount resource to mount block devices from disks reserved by the Disk Reservation agent.

[Placeholder]

system sysa

system sysb

group Apache_1 (

SystemList = { sysa ,sysb}

AutoStartList = { sysa}

)

Apache myapacheWeb

ServerRoot = "/usr/local/apache"

DetailMonitor = 10

PidFile = "logs/httpd.pid"

ConfigFile = "conf/httpd.conf"

Address = "192.168.50.50"

)

IP myapacheIP(

Device = "eth0"

Address="192.168.50.50"

NetMask="255.255.255.0"

)

NIC myapacheNIC(

Device="eth0"

NetworkHosts={"172.29.9.178","172.29.9.179"}

)

Mount myapacheMnt(

MountPoint="/mnt/apache/"

BlockDevice="/dev/sdd2"

)

DiskReservation myapacheDiskRes(

Disks ="/dev/sdd"

)

myapacheMnt requires myapacheDiskRes

myapacheIP requires myapacheNIC

myapacheWeb requires myapacheIP

myapacheWeb requires myapacheMnt

group Apache_2 (

SystemList = { sysa,sysb}

AutoStartList = { sysa}

)

Apache myapacheWeb2(

ServerRoot = "/home/web/apache"

DetailMonitor = 10

PidFile = "logs/httpd.pid"

ConfigFile = "conf/httpd.conf"

Address = "192.168.60.50"

)

IP myapacheIP2(

Device = "eth1"

Address="192.168.60.50"

NetMask="255.255.255.0"

)

NIC myapacheNIC2(

Device="eth1"

)

Mount myapacheMnt2(

MountPoint="/mnt/apache1/"

BlockDevice="/dev/sdc3"

)

DiskReservation myapacheDiskRes2(

Disks ="/dev/sdc"

)

myapacheMnt2 requires myapacheDiskRes2

myapacheIP2 requires myapacheNIC2

myapacheWeb2 requires myapacheIP2

myapacheWeb2 requires myapacheMnt2