File tree 2 files changed +9
-8
lines changed
components/automate-elasticsearch/habitat/hooks
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
#!{{pkgPathFor "core/bash"}}/bin/bash
2
2
3
3
# *** WARNING ***
4
- # Please put potentially long-running and/or complex operations in the init hook rather
5
- # than the run hook until the issue described in
4
+ # Please put potentially long-running and/or complex operations in the run
5
+ # hook rather than the run init until the issue described in
6
6
#
7
7
# https://github.com/habitat-sh/habitat/issues/1973
8
8
#
9
9
# has been resolved.
10
- # Currently, the Habitat `init` and `health_check` hooks run directly from the main loop
11
- # of the Habitat supervisor. If these hooks hang or take too long to run, they can block
10
+ #
11
+ # Currently, the Habitat `init` hook runs directly from the main loop of the
12
+ # Habitat supervisor. If these hooks hang or take too long to run, they can block
12
13
# execution of the supervisor.
13
14
#
14
15
16
+ # Make sure the old post-run sentinel file does not exist
17
+ source {{pkg.svc_config_path}}/health_check
18
+ [[ -f ${POST_RUN_SENTINEL} ]] && rm ${POST_RUN_SENTINEL}
19
+
15
20
mkdir -p {{pkg.svc_var_path}}/logs
16
21
mkdir -p {{pkg.svc_var_path}}/plugins
17
22
mkdir -p {{pkg.svc_var_path}}/tmp
Original file line number Diff line number Diff line change @@ -23,9 +23,5 @@ export ES_PATH_CONF="{{pkg.svc_config_path}}"
23
23
source {{pkg.svc_config_path}}/init_keystore
24
24
source {{pkg.svc_config_path}}/init_ca
25
25
26
- # Make sure the old post-run sentinel file does not exist
27
- source {{pkg.svc_config_path}}/health_check
28
- [[ -f ${POST_RUN_SENTINEL} ]] && rm ${POST_RUN_SENTINEL}
29
-
30
26
exec elasticsearch
31
27
{{~/if}}
You can’t perform that action at this time.
0 commit comments