chore: update start service script and systemd for master
Create a new service / deploy (push) Successful in 2s
Create a new service / deploy (push) Successful in 2s
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user