anacron: invoke directly instead of triggering the upstart job (which won't fire)
authorMichael Brown <michael.brown@discourse.org>
Wed, 28 Jan 2015 03:52:32 +0000 (22:52 -0500)
committerMichael Brown <michael.brown@discourse.org>
Wed, 28 Jan 2015 03:52:32 +0000 (22:52 -0500)
image/base/Dockerfile

index 1a6a0215d9e55b30864414c22c86f4bdfe8db195..5d9244de838580881dd7ffb965adf20b0c421b2b 100644 (file)
@@ -33,6 +33,7 @@ RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
                        postgresql-contrib-9.3 libpq-dev libreadline-dev \
                        nginx language-pack-en sudo cron anacron \
                        psmisc rsyslog vim &&\
+    sed -i -e 's/start -q anacron/anacron -s/' /etc/cron.d/anacron &&\
     sed -i.bak 's/$ModLoad imklog/#$ModLoad imklog/' /etc/rsyslog.conf &&\
     dpkg-divert --local --rename --add /sbin/initctl &&\
     sh -c "test -f /sbin/initctl || ln -s /bin/true /sbin/initctl" &&\