The sample code in the following sections is incorrect:
Writing a Zone Script in Sun Cluster Data Service for Solaris Containers Guide
Writing an SMF Service Probe in Sun Cluster Data Service for Solaris Containers Guide
The correct code for both sections is as follows:
# cat /var/tmp/probe-apache2 #!/usr/bin/ksh if echo "GET; exit" | mconnect -p 80 > /dev/null 2>&1 then exit 0 else exit 100 fi