Package: anacron
Version: 2.3-19
Severity: normal

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

   * What led up to the situation?
     anacron not started at 7:30 as it should as specified in 
'/etc/cron.d/anacron'
   
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     Change 'invoke-rc.d start anacron' to 'invoke-rc.d restart anacron'
     
   * What was the outcome of this action?
     systemd stopped then started anacron.service
     
   * What outcome did you expect instead?
     Expected invoke-rc.d to execute the start method in '/etc/init.d/anacron'.
     As it turns out systemd hijacks the process early on and sees that the 
     service had already been started and so does nothing,resulting in the
     jobs from anacrontab not being processed.  
     
     I noticed that the jobs are always run if the system had gone through 
     a suspend/resume cycle in the previous day.  This is due to 
     '/usr/lib/pm-utils/sleep.d/95anacron' which stops the anacron.service
     before going to sleep, then starts it upon resume.
     
     After changing the invoke-rc.d command from 'start' to 'restart' the
     7:30am anacron run starts every time.

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


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

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

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

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

-- Configuration Files:
/etc/anacrontab changed:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
1       5       cron.daily      run-parts --verbose /etc/cron.daily
7       10      cron.weekly     run-parts --verbose /etc/cron.weekly
@monthly        15      cron.monthly    run-parts --verbose /etc/cron.monthly

/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 /etc/init.d/anacron && /usr/sbin/invoke-rc.d 
anacron restart >/dev/null


-- 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