Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

anacrondoesn't respect START_HOURS_RANGE

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
debidant
Posts: 26
Joined: 2016-10-27 13:23

anacrondoesn't respect START_HOURS_RANGE

#1 Post by debidant »

Hi,

I use anacron on Stretch to to do my dirvish backups. Cron is not installed.

But: It doesn't respect the START_HOURS_RANGE. It always starts shortly after midnight.

Here is my anacrontab:

Code: Select all

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
START_HOURS_RANGE=8-16

# These replace cron's entries
1	5	cron.daily	run-parts --report /etc/cron.daily
7	10	cron.weekly	run-parts --report /etc/cron.weekly
@monthly	15	cron.monthly	run-parts --report /etc/cron.monthly
Any ideas?

Thanks.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: anacrondoesn't respect START_HOURS_RANGE

#2 Post by pylkko »

Use a systemd service?

debidant
Posts: 26
Joined: 2016-10-27 13:23

Re: anacrondoesn't respect START_HOURS_RANGE

#3 Post by debidant »

pylkko wrote:Use a systemd service?
What do you mean by this? Anacron is managed by systemd.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: anacrondoesn't respect START_HOURS_RANGE

#4 Post by pylkko »

Like manually write the file.

debidant
Posts: 26
Joined: 2016-10-27 13:23

Re: anacrondoesn't respect START_HOURS_RANGE

#5 Post by debidant »

But this would only be a workaround.

I'm interested why START_HOURS_RANGE isn't respected.

Post Reply