Re: anacron/cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 19, 2016 at 10:04:21PM +0200, Patrick Dupre wrote:
> The point is that I am not sure that mlocate (or updatedb) runs properly
> because locate does not find my new files !
> 
> How can I be sure that mlocate runs properly ?
> 
Sorry for the erroneous post.  Turns out the cron file I
have is a leftover from F22 and earlier.  With F23 it
went with to the systemd service Tom mentions.  My cron
file was left behind because I had modified it and
renamed it mlocate.cron.local.

As to locate not finding new files, two possibilities
even if things are running properly.

The db is only automatically updated daily.  So if you
create a file and try to locate it before the auto-update,
it will not find it.

The other possibility is a permissions situation.  mlocate
will not show you the names of files you are not allowed
to access.  So if you create new files as a different
user, or under a permission protected directory, mlocate
will not show them to you.

Jon
> 
> 
> > Sent: Monday, September 19, 2016 at 9:15 PM
> > From: "Tom Horsley" <horsley1953@xxxxxxxxx>
> > To: "Patrick Dupre" <pdupre@xxxxxxx>
> > Cc: users@xxxxxxxxxxxxxxxxxxxxxxx
> > Subject: Re: anacron/cron
> >
> > On Mon, 19 Sep 2016 20:47:20 +0200
> > Patrick Dupre wrote:
> > 
> > > Sorry, but I do not have 
> > > /etc/cron.daily/mlocate.cron
> > 
> > This is all part of the systemd fungus experience as it
> > attempts to engulph all of linux.
> > 
> > An rpm -q --list mlocate shows these files on my fedora 24
> > system:
> > 
> > /usr/lib/systemd/system/mlocate-updatedb.service
> > /usr/lib/systemd/system/mlocate-updatedb.timer
> > 
> > So it is now running on a systemd timer, not in cron
> > (this helps make sure no one has any idea what the heck
> > is going on).
> >
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>> End of included message <<<

-- 
Jon H. LaBadie                  jonfu@xxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux