Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix signals being ignored (#113) #114

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ run_cmd() {
if [[ $(id --user) == "59999" ]] && [[ $(id --group) == "59999" ]]; then
# -E preserves the env vars, but some are still nulled for security reasons
# use "env" to preserve them
sudo -E env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $1 || exit 1
$cmd_prefix sudo -E env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $1 || exit 1
else
$1 || exit 1
$cmd_prefix $1 || exit 1
fi
}

Expand Down Expand Up @@ -75,7 +75,7 @@ if [[ $1 == "build_tiles" ]]; then
if [[ ${serve_tiles} == "True" ]]; then
if test -f ${CONFIG_FILE}; then
echo "INFO: Found config file. Starting valhalla service!"
run_cmd "valhalla_service ${CONFIG_FILE} ${server_threads}"
cmd_prefix=exec run_cmd "valhalla_service ${CONFIG_FILE} ${server_threads}"
else
echo "WARNING: No config found!"
fi
Expand Down