Print configuration just before starting the service

Instead of after the configuration phase; printing it before service start supports debugging better
This commit is contained in:
Erik Huelsmann 2025-08-09 17:02:28 +02:00
parent 736eb09076
commit 3a58015bbd
3 changed files with 13 additions and 6 deletions

View File

@ -159,10 +159,4 @@ EOF
fi fi
fi fi
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
export LSMB_CONFIG_FILE
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
cat ${LSMB_CONFIG_FILE}
echo '--------- LEDGERSMB CONFIGURATION --- END'
exit 0 exit 0

View File

@ -3,4 +3,10 @@
home_dir="$(dirname $(readlink -f $BASH_SOURCE))" home_dir="$(dirname $(readlink -f $BASH_SOURCE))"
"$home_dir/config.sh" || { echo "Failed configuration" ; exit 1 } "$home_dir/config.sh" || { echo "Failed configuration" ; exit 1 }
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-/srv/ledgersmb/local/conf/ledgersmb.yaml}
export LSMB_CONFIG_FILE
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
cat ${LSMB_CONFIG_FILE}
echo '--------- LEDGERSMB CONFIGURATION --- END'
exec "$home_dir/run.sh" exec "$home_dir/run.sh"

View File

@ -1,3 +1,10 @@
#!/usr/bin/with-contenv /bin/bash #!/usr/bin/with-contenv /bin/bash
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-/srv/ledgersmb/local/conf/ledgersmb.yaml}
export LSMB_CONFIG_FILE
echo "--------- LEDGERSMB CONFIGURATION: $LSMB_CONFIG_FILE"
cat ${LSMB_CONFIG_FILE}
echo '--------- LEDGERSMB CONFIGURATION --- END'
s6-setuidgid www-data /usr/local/bin/run.sh s6-setuidgid www-data /usr/local/bin/run.sh