add DEBUG option

This commit is contained in:
ElevenNotes
2025-02-07 10:45:31 +01:00
parent fdfa93cda8
commit 33a59cfaa8
5 changed files with 13 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
#!/bin/ash
if [ -z "${1}" ]; then
if [ ! -z "${DEBUG}" ]; then
KMS_LOGLEVEL="DEBUG"
eleven log debug "setting kms log level to DEBUG"
fi
cd /opt/py-kms
set -- "python3" \
pykms_Server.py \
@@ -12,7 +18,7 @@
-s /kms/var/kms.db \
-w RANDOM \
-V ${KMS_LOGLEVEL} \
-F /var/log/kms.log \
-F STDOUT \
-y
eleven log start