Package: anacron
Version: 2.3-19
Followup-For: Bug #688665

Dear Maintainer,

I can confirm that this bug still exists.
After anacron runs the 1st time, usually at boot, systemd registers its state
as "active (exited)". Thus when the command "/usr/sbin/invoke-rc.d anacron
start" in file /etc/cron.d/anacron is executed and systemd intervenes, systemd
interprets it as already active and does not execute the command (or it's
systemd equivalent to "start" the service)

The workaround I have currently employed is to make the following change to the
/etc/cron.d/anacron script:
CHANGE: 'test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start
>/dev/null'
TO: 'test -x /usr/sbin/anacron && anacron -s'
in the cronjob definition (without the single quotation marks)

I'm not entirely sure why the original posters solution would work because when
you look at the /etc/init.d/anacron file there are no commands / actions in the
"restart" stanza of the case statement (it is possible that I am not reading
the bash script properly).

regards

Os

*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these lines ***



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7-trunk+illuminati-ox-amd64-lenovot400 (SMP w/2 CPU cores; 
PREEMPT)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages anacron depends on:
ii  debianutils  4.3.2
ii  libc6        2.13-37
ii  lsb-base     4.1+Debian8

Versions of packages anacron recommends:
ii  cron                         3.0pl1-124
ii  rsyslog [system-log-daemon]  5.8.11-2

Versions of packages anacron suggests:
ii  exim4-daemon-light [mail-transport-agent]  4.80-7
ii  powermgmt-base                             1.31

-- Configuration Files:
/etc/cron.d/anacron changed:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
30 7    * * *   root    test -x /usr/sbin/anacron && anacron -s


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to