Skip to content
Snippets Groups Projects
Verified Commit 06a235ca authored by Marc Vef's avatar Marc Vef
Browse files

gkfs runner script: Add USE_PROXY to config file

parent e7c3b0c2
No related branches found
No related tags found
1 merge request!191New feature: GekkoFS Proxy
......@@ -222,7 +222,9 @@ start_daemon() {
done
else
create_pid_file ${SRUN_DAEMON_PID_FILE} ${daemon_pid}
create_pid_file ${SRUN_PROXY_PID_FILE} ${proxy_pid}
if [[ ${USE_PROXY} == true ]]; then
create_pid_file ${SRUN_PROXY_PID_FILE} ${proxy_pid}
fi
fi
}
#######################################
......@@ -243,7 +245,7 @@ stop_daemons() {
exit 1
fi
# attempt to shutdown proxy
if [[ -e ${proxy_pid_file} ]]; then
if [[ ${USE_PROXY} == true ]] && [[ -e ${proxy_pid_file} ]]; then
while IFS= read -r line
do
if ps -p "${line}" > /dev/null; then
......@@ -366,7 +368,7 @@ USE_SRUN=${USE_SRUN}
RUN_FOREGROUND=false
DAEMON_NUMACTL_=${DAEMON_NUMACTL}
PROXY_NUMACTL_=${PROXY_NUMACTL}
USE_PROXY=false
USE_PROXY=${USE_PROXY}
# parse input
POSITIONAL=()
while [[ $# -gt 0 ]]; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment