Sample configuration

Zone myzone (

ZoneName = "localzone1"

Pool = "MyPool1"

)

Configuration for Solaris 10

In this example, configure a resource in a non-global zone: zone1. The ZonePath of zone1 is /zone1/root. Configure the executable samba as StartProgram and StopProgram, with start and stop specified as command line arguments respectively. Configure the agent to monitor two processes: a process specified by the pid smbd.pid, and the process nmbd.

Application samba_app (

StartProgram = "/usr/sbin/samba start"

StopProgram = "/usr/sbin/samba stop"

PidFiles = { "/localzone1/root/var/lock/samba/smbd.pid" }

MonitorProcesses = { "nmbd" }

ContainerName = "localzone1"

)