|
86 | 86 | {template, "rel/files/riak-chkconfig", "bin/riak-chkconfig"}, |
87 | 87 | {template, "rel/files/riak-repl", "bin/riak-repl"}, |
88 | 88 |
|
| 89 | + {template, "rel/files/riak", "usr/bin/riak"}, |
| 90 | + {template, "rel/files/riakpre", "usr/bin/riakpre"}, |
| 91 | + {template, "rel/files/riakrun", "usr/bin/riakrun"}, |
| 92 | + |
89 | 93 | {copy, "rel/files/check_ulimit", "bin/hooks/check_ulimit"}, |
90 | 94 | {copy, "rel/files/riak_not_running", "bin/hooks/riak_not_running"} |
91 | 95 |
|
|
98 | 102 | {debug, "riak-debug"}, |
99 | 103 | {repl, "riak-repl"}, |
100 | 104 | {chkconfig, "riak-chkconfig"} |
101 | | - ]}, |
102 | | - |
| 105 | + ]} |
103 | 106 |
|
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 | 107 | ]}. |
113 | 108 |
|
114 | 109 | {dialyzer, [{plt_apps, all_deps}]}. |
115 | 110 |
|
116 | 111 | {profiles, [ |
117 | 112 | {rel, [ |
118 | 113 | {relx, [ |
119 | | - {overlay_vars, "rel/vars.config"} |
| 114 | + {overlay_vars, "rel/vars.config"}, |
| 115 | + {extended_start_script_hooks, |
| 116 | + [{pre_start, |
| 117 | + [{custom, "hooks/riak_not_running"}, |
| 118 | + {custom, "hooks/check_ulimit"}]}, |
| 119 | + {post_start, |
| 120 | + [{wait_for_process, riak_core_node_watcher}]} |
| 121 | + ]} |
120 | 122 | ]} |
121 | 123 | ]}, |
122 | | - {dev, [ |
123 | | - {relx, [ |
124 | | - {dev_mode, true} |
125 | | - ]} |
| 124 | + {dev, [{relx, [{dev_mode, true}]} |
126 | 125 | ]}, |
127 | 126 | {rpm, [ |
128 | 127 | {relx, [ |
129 | 128 | {overlay_vars, "rpm.vars.config"}, |
130 | 129 | {overlay, [ |
131 | | - {template, "rel/pkg/rpm/riak", "usr/bin/riak"} |
132 | | - ]} |
| 130 | + |
| 131 | + ]}, |
| 132 | + {extended_start_script_hooks, |
| 133 | + [{pre_start, |
| 134 | + [{custom, "hooks/riak_not_running"}, |
| 135 | + {custom, "hooks/check_ulimit"}]}, |
| 136 | + {post_start, |
| 137 | + [{pid, "/run/riak/riak.pid"}, |
| 138 | + {wait_for_process, riak_core_node_watcher}]} |
| 139 | + ]} |
133 | 140 | ]} |
134 | 141 | ]}, |
135 | 142 | {deb, [ |
136 | 143 | {relx, [ |
137 | | - {overlay_vars, "deb.vars.config"} |
| 144 | + {overlay_vars, "debian/vars.config"}, |
| 145 | + {overlay, [ |
| 146 | + {template, "rel/files/riak", "usr/bin/riak"}, |
| 147 | + {template, "rel/files/riakpre", "usr/bin/riakpre"}, |
| 148 | + {template, "rel/files/riakrun", "usr/bin/riakrun"} |
| 149 | + ]}, |
| 150 | + {extended_start_script_hooks, |
| 151 | + [{pre_start, |
| 152 | + [{custom, "hooks/riak_not_running"}, |
| 153 | + {custom, "hooks/check_ulimit"}]}, |
| 154 | + {post_start, |
| 155 | + [wait_for_vm_start, |
| 156 | + {pid, "/run/riak/riak.pid"}, |
| 157 | + {wait_for_process, riak_core_node_watcher}]} |
| 158 | + ]} |
138 | 159 | ]} |
139 | 160 | ]} |
140 | 161 | ]}. |
0 commit comments