~ubuntu-branches/debian/stretch/resource-agents/stretch

« back to all changes in this revision

Viewing changes to tools/ocft/apache

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2011-06-10 16:26:35 UTC
  • Revision ID: james.westby@ubuntu.com-20110610162635-yiy0vfopqw4trzgx
Tags: upstream-3.9.0
ImportĀ upstreamĀ versionĀ 3.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# apache
 
2
 
 
3
CONFIG
 
4
        #AgentRoot /usr/lib/ocf/resource.d/heartbeat
 
5
        InstallPackage apache2
 
6
        HangTimeout 20
 
7
 
 
8
SETUP-AGENT
 
9
        /etc/init.d/apache2 start
 
10
        /etc/init.d/apache2 stop
 
11
 
 
12
CASE-BLOCK required_args
 
13
        Var OCF_RESKEY_statusurl=http://localhost/info2html.css
 
14
        Var OCF_RESKEY_testregex='This is'
 
15
 
 
16
CASE-BLOCK default_status
 
17
        AgentRun stop
 
18
 
 
19
CASE-BLOCK prepare
 
20
        Include required_args
 
21
        Include default_status
 
22
 
 
23
CASE "check base env"
 
24
        Include prepare
 
25
        AgentRun start OCF_SUCCESS
 
26
 
 
27
CASE "check base env: unset OCF_RESKEY_statusurl"
 
28
        Include prepare
 
29
        Unvar OCF_RESKEY_statusurl
 
30
        AgentRun start OCF_ERR_CONFIGURED
 
31
 
 
32
CASE "check base env: unset OCF_RESKEY_testregex"
 
33
        Include prepare
 
34
        Unvar OCF_RESKEY_testregex
 
35
        AgentRun start OCF_ERR_CONFIGURED
 
36
 
 
37
CASE "normal start"
 
38
        Include prepare
 
39
        AgentRun start OCF_SUCCESS
 
40
 
 
41
CASE "normal stop"
 
42
        Include prepare
 
43
        AgentRun start
 
44
        AgentRun stop OCF_SUCCESS
 
45
 
 
46
CASE "double start"
 
47
        Include prepare
 
48
        AgentRun start
 
49
        AgentRun start OCF_SUCCESS
 
50
 
 
51
CASE "double stop"
 
52
        Include prepare
 
53
        AgentRun stop OCF_SUCCESS
 
54
 
 
55
CASE "running monitor"
 
56
        Include prepare
 
57
        AgentRun start
 
58
        AgentRun monitor OCF_SUCCESS
 
59
 
 
60
CASE "not running monitor"
 
61
        Include prepare
 
62
        AgentRun monitor OCF_NOT_RUNNING
 
63
 
 
64
CASE "unimplemented command"
 
65
        Include prepare
 
66
        AgentRun no_cmd OCF_ERR_UNIMPLEMENTED