diff options
author | Luis Rascao <[email protected]> | 2017-05-14 02:15:05 +0100 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2017-05-15 17:27:56 +0100 |
commit | 82f6c94a4d8ef1cf2be0becc5816d0646e5a50cc (patch) | |
tree | 0859e7e9a796f69dd26ebc015c8c7b0ca9d5f199 /priv/templates/builtin_hook_status | |
parent | c1fa56db1ec4cc4aa6975f4efee0c189452a251d (diff) | |
download | relx-82f6c94a4d8ef1cf2be0becc5816d0646e5a50cc.tar.gz relx-82f6c94a4d8ef1cf2be0becc5816d0646e5a50cc.tar.bz2 relx-82f6c94a4d8ef1cf2be0becc5816d0646e5a50cc.zip |
Add custom status hook to extended script
Provide a status command to start script which,
by default, runs a builtin hook that simply prints
which applications are running in the node.
This hook can then be customized to print whatever
the user wants by adding
{status, [{custom, "path/to/hook"}]}
to already existing extended_start_script_hooks.
Diffstat (limited to 'priv/templates/builtin_hook_status')
-rw-r--r-- | priv/templates/builtin_hook_status | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/priv/templates/builtin_hook_status b/priv/templates/builtin_hook_status new file mode 100644 index 0000000..e5dd792 --- /dev/null +++ b/priv/templates/builtin_hook_status @@ -0,0 +1,3 @@ +#!/bin/bash + +echo $(relx_nodetool eval "application:which_applications().") |