Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #247160

Re: updatedb.mlocate

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: updatedb.mlocate
Date 2022-04-10 18:10 +0200
Message-ID <EaIit-7PO2-1@gated-at.bofh.it> (permalink)
References (1 earlier) <EawU1-7IHY-3@gated-at.bofh.it> <EaCd3-7M2v-3@gated-at.bofh.it> <EaCG5-7MrF-5@gated-at.bofh.it> <EaGTn-7OPF-1@gated-at.bofh.it> <EaH33-7OT7-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Apr 10, 2022 at 03:49:02PM +0100, Darac Marjal wrote:
> Systemd already supports this.
> 
> * AccuracySec=   Specify the accuracy the timer shall elapse with. [...]
> Within this time window, the expiry time shall be placed at a host-specific,
> randomized, but stable position.
> 
> * RandomizedDelaySec =    Delay the timer by a randomly selected, evenly
> distributed amount of time between 0 and the specified time value.
> 
> 
> So, "OnCalendar=daily" together with "AccuracySec=24h" *seems* to imply
> "once per day, but at a random time during the day".

If that's the case, it's not working correctly on my system.  mlocate
has OnCalendar=daily and AccuracySec=24h, but before I changed it, it
was scheduled to run *exactly* at midnight.

/lib/systemd/system/man-db.timer has OnCalendar=daily and AccuracySec=12h
and it's scheduled to run *exactly* at midnight.

/lib/systemd/system/logrotate.timer has OnCalendar=daily and AccuracySec=1h
and it's scheduled to run *exactly* at midnight.

unicorn:~$ systemctl list-timers | grep 00:00
Mon 2022-04-11 00:00:00 EDT 13h left    Sun 2022-04-10 00:00:00 EDT 10h ago      logrotate.timer              logrotate.service
Mon 2022-04-11 00:00:00 EDT 13h left    Sun 2022-04-10 00:00:00 EDT 10h ago      man-db.timer                 man-db.service

Further evidence in the form of timestamps on files in /var/log:

-rw-r-----   1 root    adm             1559363 Apr  9 23:59 auth.log.1
-rw-r-----   1 root    adm              568405 Apr  9 23:59 mail.log.1
-rw-r-----   1 root    adm              568405 Apr  9 23:59 mail.info.1
-rw-r-----   1 root    adm                   0 Apr 10 00:00 mail.warn
-rw-r-----   1 root    adm                   0 Apr 10 00:00 debug
-rw-r-----   1 root    adm              740788 Apr 10 00:00 syslog.1
-rw-r-----   1 root    adm               46660 Apr 10 00:00 daemon.log.1

Previously I had noted that the mlocate db timestamp was at midnight
as well.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

updatedb.mlocate "Roy J. Tellason, Sr." <roy@rtellason.com> - 2022-04-09 18:40 +0200
  Re: updatedb.mlocate Roberto C. Sánchez <roberto@debian.org> - 2022-04-09 18:50 +0200
    Re: updatedb.mlocate Brian <ad44@cityscape.co.uk> - 2022-04-09 19:00 +0200
      Re: updatedb.mlocate "sp007@caiway.net" <sp007@caiway.net> - 2022-04-09 19:30 +0200
      Re: updatedb.mlocate Brian <ad44@cityscape.co.uk> - 2022-04-09 19:40 +0200
      Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-09 20:10 +0200
    Re: updatedb.mlocate "Roy J. Tellason, Sr." <roy@rtellason.com> - 2022-04-10 16:40 +0200
  Re: updatedb.mlocate Charles Curley <charlescurley@charlescurley.com> - 2022-04-09 19:30 +0200
    Re: updatedb.mlocate "Roy J. Tellason, Sr." <roy@rtellason.com> - 2022-04-10 16:50 +0200
      Re: updatedb.mlocate David Wright <deblis@lionunicorn.co.uk> - 2022-04-11 01:30 +0200
  Re: updatedb.mlocate gene heskett <gheskett@shentel.net> - 2022-04-09 21:50 +0200
    Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-09 22:40 +0200
      Re: updatedb.mlocate gene heskett <gheskett@shentel.net> - 2022-04-09 23:00 +0200
        Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-09 23:20 +0200
          Re: updatedb.mlocate "Roy J. Tellason, Sr." <roy@rtellason.com> - 2022-04-10 17:00 +0200
        Re: updatedb.mlocate Charles Curley <charlescurley@charlescurley.com> - 2022-04-10 05:30 +0200
          Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-10 06:00 +0200
            Re: updatedb.mlocate <tomas@tuxteam.de> - 2022-04-10 08:10 +0200
            Re: updatedb.mlocate Linux-Fan <Ma_Sys.ma@web.de> - 2022-04-10 11:40 +0200
              Re: updatedb.mlocate gene heskett <gheskett@shentel.net> - 2022-04-10 12:10 +0200
                Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-10 16:40 +0200
                Re: updatedb.mlocate Darac Marjal <mailinglist@darac.org.uk> - 2022-04-10 16:50 +0200
                Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-10 18:10 +0200
                Re: updatedb.mlocate David Wright <deblis@lionunicorn.co.uk> - 2022-04-10 20:50 +0200
              Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-10 16:10 +0200
                Re: updatedb.mlocate gene heskett <gheskett@shentel.net> - 2022-04-10 22:40 +0200
                Re: updatedb.mlocate David Wright <deblis@lionunicorn.co.uk> - 2022-04-11 01:30 +0200
                Re: updatedb.mlocate David <bouncingcats@gmail.com> - 2022-04-11 01:40 +0200
                Re: updatedb.mlocate Greg Wooledge <greg@wooledge.org> - 2022-04-11 02:00 +0200
                Re: updatedb.mlocate David <bouncingcats@gmail.com> - 2022-04-11 02:20 +0200

csiph-web