Debian Codegraph @

tools/ocft/MailTo

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # MailTo
2
3 CONFIG
4 Agent MailTo
5 AgentRoot /usr/lib/ocf/resource.d/heartbeat
6 InstallPackage mailx
7 HangTimeout 20
8
9 CASE-BLOCK required_args
10 Env OCF_RESKEY_email=root@localhost
11
12 CASE-BLOCK default_status
13 AgentRun stop
14
15 CASE-BLOCK prepare
16 Include required_args
17 Include default_status
18
19 CASE "check base env"
20 Include prepare
21 AgentRun start OCF_SUCCESS
22
23 CASE "check base env: unset 'OCF_RESKEY_email'"
24 Include prepare
25 Unenv OCF_RESKEY_email
26 AgentRun start OCF_ERR_CONFIGURED
27
28 CASE "normal start"
29 Include prepare
30 AgentRun start OCF_SUCCESS
31
32 CASE "normal stop"
33 Include prepare
34 AgentRun start
35 AgentRun stop OCF_SUCCESS
36
37 CASE "double start"
38 Include prepare
39 AgentRun start
40 AgentRun start OCF_SUCCESS
41
42 CASE "double stop"
43 Include prepare
44 AgentRun stop OCF_SUCCESS
45
46 CASE "monitor with running"
47 Include prepare
48 AgentRun start
49 AgentRun monitor OCF_SUCCESS
50
51 CASE "monitor with not running"
52 Include prepare
53 AgentRun monitor OCF_NOT_RUNNING
54
55 CASE "unimplemented command"
56 Include prepare
57 AgentRun no_cmd OCF_ERR_UNIMPLEMENTED