From b6b2261212a2035dc9a3c0fcdcb3390a6c095f90 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 25 Jul 2021 14:08:19 +0900 Subject: [PATCH] foundry: Remove the need to explicitly configure process names Foundry requires the process configurations to specify a process name that is equal to the name of the configuration, otherwise running processes are not correctly detected. Since the user is not free to specify any name they want, it does not make sense to require the user to configure the process name at all. This commit changes the foundry implementation so that the name of the config domain is used as the process name, doing away with the need to explicitly configure the process name. --- foundry.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/foundry.sh b/foundry.sh index 831f515..06eb51f 100755 --- a/foundry.sh +++ b/foundry.sh @@ -110,6 +110,10 @@ process_is_running() { if [[ "$proc" == *" --name $process "* ]]; then return 0 fi + + if [[ "$proc" == *" --name $process" ]]; then + return 0 + fi done < <(inst_list "$command") return 1 @@ -122,11 +126,9 @@ process_start() { local args local param - args=() + args=("--name" "$process") command="" - conf_get_names "$process" | log_highlight "config names" | log_debug - while read -r param; do local value -- 2.47.3