Run cron directly from supervisord

master
Carlos Mogas da Silva 6 years ago
parent 99c3eb3822
commit fbdf51a6f9
  1. 3
      Dockerfile
  2. 2
      cron.sh
  3. 2
      supervisord.conf

@ -18,12 +18,11 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/so
haraka \ haraka \
&& chown -R haraka:haraka /haraka && chown -R haraka:haraka /haraka
COPY cron.sh /cron.sh
COPY haraka.sh /haraka.sh COPY haraka.sh /haraka.sh
COPY supervisord.conf /etc/supervisor/supervisord.conf COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh
RUN chmod +x /cron.sh /haraka.sh /etc/cron.daily/certbot-renew.sh RUN chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh
# Install and Haraka and it's plugins # Install and Haraka and it's plugins
USER node USER node

@ -1,2 +0,0 @@
source /etc/default/cron
/usr/sbin/cron -n

@ -19,4 +19,4 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
command=/cron.sh command=/usr/sbin/cron -n

Loading…
Cancel
Save