Re: anacron/cron

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

 




On 09/20/16 05:38, Patrick Dupre wrote:
> I did:
> systemctl enable mlocate-updatedb.service
> (no error)
> but it still does not seem to be enabled:

Re-Read what is below....

You want...

systemctl enable mlocate-updatedb.timer
                                                            ^
                                                            ^
                                                            ^

> ● mlocate-updatedb.service - Update a database for mlocate
>    Loaded: loaded (/usr/lib/systemd/system/mlocate-updatedb.service; static; vendor preset: disable
>    Active: inactive (dead)
>
> Sep 19 23:15:02 teucidide systemd[1]: Stopped Update a database for mlocate.
> Sep 19 23:15:03 teucidide systemd[1]: Started Update a database for mlocate.
>
> systemctl is-enabled mlocate-updatedb.service
> static
>
> Is it OK ?
>
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===========================================================================
>
>
>> Sent: Monday, September 19, 2016 at 10:30 PM
>> From: "Andy Blanchard" <zocalo@xxxxxxxxx>
>> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
>> Subject: Re: anacron/cron
>>
>> It *should* be running every day, but just checked my system and it's
>> not enabled either and hasn't run for a week as well - possible bug?
>> Anyway, to fix it, run the following commands (as root or via sudo):
>>
>> systemctl list-timers --all
>>
>> That *should* list a UNIT called "mlocate-updatedb.timer", but on my
>> system it did not.  To enable it, use the following command:
>>
>> systemctl enable mlocate-updatedb.timer
>>
>>
>> You can also update the DB manually by running the script that calls:
>>
>> /usr/libexec/mlocate-run-updatedb
>>
>>
>> Getting back to that "list-timers" command, all of systemd's timers
>> are in "/usr/lib/systemd/system/" and have the extenstion "timer".
>> Might be worth having a look and seeing what else you think should be
>> running, but isn't...
>>
>> Andy
>>
>>
>>
>> On 19 September 2016 at 21:16, Patrick Dupre <pdupre@xxxxxxx> wrote:
>>> -rw-r-----. 1 root slocate 30573186 Sep 12 15:40 /var/lib/mlocate/mlocate.db
>>>
>>> This what I anticipated,
>>> The database has not been updated for a week !
>>>
>>>
>>> ===========================================================================
>>>  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
>>>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>>>  Université du Littoral-Côte d'Opale           | |
>>>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>>>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
>>> ===========================================================================
>>>
>>>
>>>> Sent: Monday, September 19, 2016 at 10:11 PM
>>>> From: "Joe Zeff" <joe@xxxxxxx>
>>>> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
>>>> Subject: Re: anacron/cron
>>>>
>>>> On 09/19/2016 01:04 PM, Patrick Dupre wrote:
>>>>> How can I be sure that mlocate runs properly ?
>>>> If all else fails, run this as root:
>>>>
>>>> ls -l /var/lib/mlocate/mlocate.db
>>>>
>>>> and see when it was last updated.
>>>> _______________________________________________
>>>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>>>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>>>
>>> _______________________________________________
>>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>
>> -- 
>> Andy
>>
>> The only person to have all his work done by Friday was Robinson Crusoe
>> _______________________________________________
>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx


-- 
You're Welcome Zachary Quinto
_______________________________________________
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