forked from spc-group/ipython-s25user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_qstarter_py.sh
executable file
·51 lines (42 loc) · 1.35 KB
/
run_qstarter_py.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# manage the bluesky queueserver
#--------------------
# change the program defaults here
CONDA_ENVIRONMENT=bluesky_2022_3
DATABROKER_CATALOG=25id
#--------------------
# activate conda environment
# In GitHub Actions workflow,
# $CONDA is an environment variable pointing to the
# root of the miniconda directory
if [ "${CONDA}" == "" ] ; then
CONDA=/APSshare/miniconda/x86_64
if [ ! -d "${CONDA}" ]; then
if [ "${CONDA_EXE}" != "" ]; then
# CONDA_EXE is the conda exectuable
CONDA=$(dirname $(dirname $(readlink -f "${CONDA_EXE}")))
else
# fallback
CONDA=/opt/miniconda3
fi
fi
fi
CONDA_BASE_DIR="${CONDA}/bin"
# In GitHub Actions workflow,
# $ENV_NAME is an environment variable naming the conda environment to be used
if [ -z "${ENV_NAME}" ] ; then
ENV_NAME="${CONDA_ENVIRONMENT}"
fi
# echo "Environment: $(env | sort)"
source "${CONDA_BASE_DIR}/activate" "${ENV_NAME}"
SHELL_SCRIPT_NAME=${BASH_SOURCE:-${0}}
if [ -z "$STARTUP_DIR" ] ; then
# If no startup dir is specified, use the directory with this script
STARTUP_DIR=$(dirname "${SHELL_SCRIPT_NAME}")
fi
start-re-manager \
--startup-dir "${STARTUP_DIR}" \
--update-existing-plans-devices ENVIRONMENT_OPEN \
--zmq-publish-console ON \
--keep-re
# --databroker-config "${DATABROKER_CATALOG}"