Debian Codegraph @

tools/ocft/pgsql

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # pgsql
2
3 CONFIG
4 Agent pgsql
5 AgentRoot /usr/lib/ocf/resource.d/heartbeat
6 InstallPackage postgresql-server
7 HangTimeout 20
8
9 SETUP-AGENT
10 /etc/init.d/postgresql start
11 /etc/init.d/postgresql stop
12
13 CASE-BLOCK crm_setting
14 Env OCF_RESKEY_CRM_meta_timeout=15000
15
16 CASE-BLOCK default_status
17 AgentRun stop
18
19 CASE-BLOCK prepare
20 Include crm_setting
21 Include default_status
22
23 CASE "check base env"
24 Include prepare
25 AgentRun start OCF_SUCCESS
26
27 CASE "check base env: invalid 'OCF_RESKEY_pgctl'"
28 Include prepare
29 Env OCF_RESKEY_pgctl=no_such
30 AgentRun start OCF_ERR_INSTALLED
31
32 CASE "normal start"
33 Include prepare
34 AgentRun start OCF_SUCCESS
35
36 CASE "normal stop"
37 Include prepare
38 AgentRun start
39 AgentRun stop OCF_SUCCESS
40
41 CASE "double start"
42 Include prepare
43 AgentRun start
44 AgentRun start OCF_SUCCESS
45
46 CASE "double stop"
47 Include prepare
48 AgentRun stop OCF_SUCCESS
49
50 CASE "running monitor"
51 Include prepare
52 AgentRun start
53 AgentRun monitor OCF_SUCCESS
54
55 CASE "not running monitor"
56 Include prepare
57 AgentRun monitor OCF_NOT_RUNNING
58
59 CASE "unimplemented command"
60 Include prepare
61 AgentRun no_cmd OCF_ERR_UNIMPLEMENTED
62
63 CASE "non-existent user"
64 Include prepare
65 Env OCF_RESKEY_pgdba=no_user
66 AgentRun start OCF_ERR_INSTALLED
67
68 CASE "invalid user"
69 Include prepare
70 Env OCF_RESKEY_pgdba=nobody
71 AgentRun start OCF_ERR_PERM