From 82f6c94a4d8ef1cf2be0becc5816d0646e5a50cc Mon Sep 17 00:00:00 2001 From: Luis Rascao Date: Sun, 14 May 2017 02:15:05 +0100 Subject: 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. --- priv/templates/builtin_hook_status | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 priv/templates/builtin_hook_status (limited to 'priv/templates/builtin_hook_status') 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().") -- cgit v1.2.3