svchelper/app/bin/debug

10 lines
297 B
Plaintext
Raw Normal View History

2024-04-23 02:34:16 +00:00
#!/usr/bin/env bash
"$APP" onearg "$@"
"$APP" exist "$1"
source "$APP" service_env "$1"
if ! [ "$SERVICE_RUN" = "" ]; then
SERVICE_RUN_RAW="cd \"$SERVICE_CD\"; echo \"* pwd: \$PWD\"; exec ${SERVICE_RUN//"/\\"}"
echo "* bash: $SERVICE_RUN_RAW"
gosu "$SERVICE_USER" bash -c "$SERVICE_RUN_RAW"
fi