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    ri...@alldigital.com -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-         "OK, so you're a Ph.D. Just don't TOUCH anything!"         -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org/message/FVUBVVD3ERITDAJU7G56AZWVCOZPIJUZ/

Reply via email to