chore: update start service script and systemd for master
Create a new service / deploy (push) Successful in 2s

This commit is contained in:
Benjamin Labrecque
2026-07-02 08:28:06 +02:00
parent 752802e88b
commit 1161382c44
4 changed files with 11 additions and 7 deletions
+8 -3
View File
@@ -4,17 +4,22 @@ SVC_ID=$1
SVC_NAME=$2
ENV=$3
set --
# TODO:
PSI_GFA_FACILITY=SLS
HLA_DIR=/sls/bd/hla
SVC_DIR=${HLA_DIR}/${ENV}/${SVC_ID}-${SVC_NAME}
export EPICS_CA_ADDR_LIST='sls-cagw.psi.ch:5062 129.129.146.88'
SERVICES_DIR=/sls/bd/hla/services
SVC_NAME_LOWER=${SVC_NAME,,}
SVC_DIR=${SERVICES_DIR}/${ENV}/${SVC_ID}-${SVC_NAME_LOWER}
# gfa_12_epics.sh died on the 16.04.2026 due to required AFS write access
#. /etc/profile.d/gfa_12_epics.sh
#. /sls/bd/exchange/BeamData/user/felix/workarounds/epicsRHEL8.rc # temporary fix
. /etc/profile.d/cas_12_epics.sh
# TODO: only for dev
export EPICS_CA_ADDR_LIST='sls-cagw.psi.ch:5062 129.129.146.88'
# activate conda environment
. /opt/gfa/python-3.10/latest/bin/activate
@@ -1,11 +1,10 @@
[Unit]
Description=AGEBD-SERVICE-MASTER (%I Environment)
Description=AGEBD-SERVICE-MASTER
After=network.target
[Service]
EnvironmentFile=/sls/bd/hla/%i/000-master/systemd/%i.env
ExecStart=/sls/bd/exchange/BeamData/user/benjamin/bin/systemd/start MASTER
Environment=AGEBD_ENV=dev
ExecStart=/sls/bd/hla/bin/start_service.sh 000 MASTER
Restart=no
[Install]
View File