Skip to content

Commit

Permalink
Merge pull request #183 from HSF/dev
Browse files Browse the repository at this point in the history
setup fetch-crl cron
  • Loading branch information
wguanicedew authored Jul 21, 2023
2 parents 88a1fdb + 6748f98 commit c1934d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ ADD main/tools/syslog-ng/syslog-ng.conf /etc/syslog-ng/
ADD main/tools/syslog-ng/idds.conf /etc/syslog-ng/conf.d/
ADD main/tools/syslog-ng/http.conf /etc/syslog-ng/conf.d/

RUN chown atlpan -R /etc/grid-security/certificates

RUN chmod -R 777 /opt/idds/config
RUN chmod -R 777 /var/log/idds
RUN chmod -R 777 /var/idds
Expand Down
8 changes: 8 additions & 0 deletions start-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ if ! [ -f /opt/idds/config/.token ]; then
fi
fi

# fetch-crl cron
cronExec=/opt/idds/cronExec
cat <<EOT >> ${tmpExe}
while true; do /usr/sbin/fetch-crl; sleep 36000; done &
EOT
chmod +x ${cronExec}
bash ${cronExec}

# start redis
mkdir /var/log/idds/redis
if [ ! -f /var/log/redis ]; then
Expand Down

0 comments on commit c1934d8

Please sign in to comment.