|
18 | 18 | ]}. |
19 | 19 |
|
20 | 20 | {project_plugins, [ |
21 | | - {rebar3_cuttlefish, {git, "https://github.com/basho/rebar3_cuttlefish", {branch, "develop-3.0"}}} |
| 21 | + {rebar3_cuttlefish, {git, "https://github.com/basho/rebar3_cuttlefish", {branch, "develop-3.0-debpkg"}}} |
22 | 22 | ]}. |
23 | 23 |
|
24 | 24 | {cuttlefish, [ |
|
91 | 91 |
|
92 | 92 | ]}, |
93 | 93 |
|
| 94 | + {overlay_vars, "rel/vars.config"}, |
| 95 | + |
94 | 96 | {generate_start_script, true}, |
95 | 97 | {extended_start_script, true}, |
96 | 98 | {extended_start_script_extensions, [ |
97 | 99 | {admin, "riak-admin"}, |
98 | 100 | {debug, "riak-debug"}, |
99 | 101 | {repl, "riak-repl"}, |
100 | 102 | {chkconfig, "riak-chkconfig"} |
101 | | - ]}, |
102 | | - |
| 103 | + ]} |
103 | 104 |
|
104 | | - {extended_start_script_hooks, |
105 | | - [ {pre_start, |
106 | | - [{custom, "hooks/riak_not_running"}, |
107 | | - {custom, "hooks/check_ulimit"}]}, |
108 | | - {post_start, |
109 | | - [{wait_for_process, riak_core_node_watcher} |
110 | | - ]} |
111 | | - ]} |
112 | 105 | ]}. |
113 | 106 |
|
114 | 107 | {dialyzer, [{plt_apps, all_deps}]}. |
115 | 108 |
|
116 | 109 | {profiles, [ |
117 | 110 | {rel, [ |
118 | 111 | {relx, [ |
119 | | - {overlay_vars, "rel/vars.config"} |
| 112 | + {extended_start_script_hooks, |
| 113 | + [{pre_start, |
| 114 | + [{custom, "hooks/riak_not_running"}, |
| 115 | + {custom, "hooks/check_ulimit"}]}, |
| 116 | + {post_start, |
| 117 | + [{wait_for_process, riak_core_node_watcher}]} |
| 118 | + ]} |
120 | 119 | ]} |
121 | 120 | ]}, |
122 | 121 | {dev, [ |
123 | 122 | {relx, [ |
124 | | - {dev_mode, true} |
| 123 | + {dev_mode, true}, |
| 124 | + {extended_start_script_hooks, |
| 125 | + [{pre_start, |
| 126 | + [{custom, "hooks/riak_not_running"}, |
| 127 | + {custom, "hooks/check_ulimit"}]}, |
| 128 | + {post_start, |
| 129 | + [{wait_for_process, riak_core_node_watcher}]} |
| 130 | + ]} |
125 | 131 | ]} |
126 | 132 | ]}, |
127 | 133 | {rpm, [ |
128 | 134 | {relx, [ |
129 | 135 | {overlay_vars, "rpm.vars.config"}, |
130 | 136 | {overlay, [ |
131 | | - {template, "rel/pkg/rpm/riak", "usr/bin/riak"} |
132 | | - ]} |
| 137 | + {template, "rel/files/riak", "usr/bin/riak"}, |
| 138 | + {template, "rel/files/riakpre", "usr/bin/riakpre"}, |
| 139 | + {template, "rel/files/riakrun", "usr/bin/riakrun"} |
| 140 | + ]}, |
| 141 | + {extended_start_script_hooks, |
| 142 | + [{pre_start, |
| 143 | + [{custom, "hooks/riak_not_running"}, |
| 144 | + {custom, "hooks/check_ulimit"}]}, |
| 145 | + {post_start, |
| 146 | + [{pid, "/run/riak/riak.pid"}, |
| 147 | + {wait_for_process, riak_core_node_watcher}]} |
| 148 | + ]} |
133 | 149 | ]} |
134 | 150 | ]}, |
135 | 151 | {deb, [ |
136 | 152 | {relx, [ |
137 | | - {overlay_vars, "deb.vars.config"} |
| 153 | + {overlay_vars, "debian/vars.config"}, |
| 154 | + {overlay, [ |
| 155 | + {template, "rel/files/riak", "usr/bin/riak"}, |
| 156 | + {template, "rel/files/riakpre", "usr/bin/riakpre"}, |
| 157 | + {template, "rel/files/riakrun", "usr/bin/riakrun"} |
| 158 | + ]}, |
| 159 | + {extended_start_script_hooks, |
| 160 | + [{pre_start, |
| 161 | + [{custom, "hooks/riak_not_running"}, |
| 162 | + {custom, "hooks/check_ulimit"}]}, |
| 163 | + {post_start, |
| 164 | + [wait_for_vm_start, |
| 165 | + {pid, "/run/riak/riak.pid"}, |
| 166 | + {wait_for_process, riak_core_node_watcher}]} |
| 167 | + ]} |
138 | 168 | ]} |
139 | 169 | ]} |
140 | 170 | ]}. |
0 commit comments