Re: Did cron files move?

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

 



On 06/11/2018 11:53 AM, ToddAndMargo wrote:
> On 06/11/2018 11:38 AM, Rick Stevens wrote:
>> On 06/11/2018 11:17 AM, ToddAndMargo wrote:
>>> Hi All,
>>>
>>> Since upgrading a server to 28 from 27, I can not find
>>> my root's cron file.  Mind you, all the jobs are still
>>> firing off like they should.
>>>
>>> Did the cron files get moved?
>>
>> Uhm, no. They should be in the /etc/crontab file, in the /etc/cron.d
>> directory or in /var/spool/cron and named after the user who owns them.
>>
>> Remember that the format of the commands in /etc/crontab or in the
>> /etc/cron.d directory are different than those in /var/spool/cron.
> 
> Ah poop!
> 
> I thought I was in /var/spool/cron but was actually
> in /var/log/cron.
> 
> You think you see what you see.
> 
> Thank you for the help.
> 
> -T
> 
> Yes I discovered the difference between /etc/cron.d and
> /var/spool/cron format about a year ago.  I did a bit
> on head scratching at the time.

It's buried in the manpage for crontab(5):

    # man 5 crontab
    ...<much stuff redacted>...
    Jobs in /etc/cron.d/
	The jobs in cron.d and /etc/crontab are system jobs, which are
	used usually for  more  than  one  user,  thus, additionally the
	username is needed.  MAILTO on the first line is optional.

Which is why the first field after the date/time stuff is the username
the job is to run as.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-         "OK, so you're a Ph.D. Just don't TOUCH anything!"         -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/FVUBVVD3ERITDAJU7G56AZWVCOZPIJUZ/



[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