Commit d6d1d41c authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Idempotent CE entrypoint script

parent 4008a64c
Pipeline #2107826 failed with stage
in 29 minutes and 10 seconds
......@@ -12,10 +12,10 @@ cp $HTCONDOR_CONF/supervisord.conf /etc/
bash start.sh &>$LOGS/htcondor_starter.log &
#setup submituser to submit jobs on HTCondor and start CE
adduser submituser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
[ ! -e /home/submituser ] && adduser submituser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
echo "submituser:toor" | chpasswd
cp $CE_CONFIG/custom-classad.jdl /home/submituser
su submituser -c "mkdir /home/submituser/tmp /home/submituser/log"
[ ! -e /home/submituser/tmp ] && su submituser -c "mkdir /home/submituser/tmp /home/submituser/log"
touch /home/submituser/no-proxy-check /home/submituser/enable-sandbox
#run CE with auto reloading
......@@ -25,4 +25,4 @@ CE_CMD="java -cp $JALIEN_DEV/alien-cs.jar -Duserid=$(id -u) -Dcom.sun.jndi.ldap.
#wait for JCentral-dev
while ! /cvmfs/alice.cern.ch/bin/alienv setenv xjalienfs -c ". ${JALIEN_DEV}/env_setup.sh && alien.py pwd"; do sleep 1; done
ls $JALIEN_DEV/*.jar | entr -rcs "su submituser -c \"$CE_CMD\""
\ No newline at end of file
ls $JALIEN_DEV/*.jar | entr -rcs "su submituser -c \"$CE_CMD\""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment