Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn setup
Commits
d6d1d41c
Commit
d6d1d41c
authored
Nov 19, 2020
by
Nikola Hardi
Browse files
Idempotent CE entrypoint script
parent
4008a64c
Pipeline
#2107826
failed with stage
in 29 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ce-setup/ce-entrypoint.sh
View file @
d6d1d41c
...
...
@@ -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
\"
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment