anacron (e.g., cron.daily) not working after upgrade to 15.04
Adam Funk
a24061 at ducksburg.com
Thu May 21 11:49:30 UTC 2015
On 2015-05-20, Colin Law wrote:
> On 20 May 2015 at 09:04, Adam Funk <a24061 at ducksburg.com> wrote:
>> Hi,
>>
>> Yesterday I upgraded two machines to 15.04, & this morning both of
>> them have failed to run /etc/cron.daily jobs with this error e-mail:
>>
>> Subject: Cron <root at bunsen> start -q anacron || :
>>
>> start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
...
Thanks for the advice, but it turns out to be my own fault. Years ago
I modified /etc/cron.d/anacron to make the daily jobs run earlier in
the morning; until a little while ago, the file looked like this:
#v+
# /etc/cron.d/anacron: crontab entries for the anacron package
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#30 7 * * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
# AF 2009-12-01: change of time copied; 2010-04-20: 06h01->05h45
11 05 * * * root start -q anacron || :
#v-
So I replaced the old command with the new one & I think it's working
now.
More information about the ubuntu-users
mailing list