4
#AgentRoot /usr/lib/ocf/resource.d/heartbeat
9
/etc/init.d/apache2 start
10
/etc/init.d/apache2 stop
12
CASE-BLOCK required_args
13
Var OCF_RESKEY_statusurl=http://localhost/info2html.css
14
Var OCF_RESKEY_testregex='This is'
16
CASE-BLOCK default_status
21
Include default_status
25
AgentRun start OCF_SUCCESS
27
CASE "check base env: unset OCF_RESKEY_statusurl"
29
Unvar OCF_RESKEY_statusurl
30
AgentRun start OCF_ERR_CONFIGURED
32
CASE "check base env: unset OCF_RESKEY_testregex"
34
Unvar OCF_RESKEY_testregex
35
AgentRun start OCF_ERR_CONFIGURED
39
AgentRun start OCF_SUCCESS
44
AgentRun stop OCF_SUCCESS
49
AgentRun start OCF_SUCCESS
53
AgentRun stop OCF_SUCCESS
55
CASE "running monitor"
58
AgentRun monitor OCF_SUCCESS
60
CASE "not running monitor"
62
AgentRun monitor OCF_NOT_RUNNING
64
CASE "unimplemented command"
66
AgentRun no_cmd OCF_ERR_UNIMPLEMENTED