FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
okay so i have a bunch of programs that run. i put them in /etc/cron.d in a file. they run on my pc however they are not running on my servers. i have checked documentation and i find nothing that says cron has been disable. the permissions are correct on the files but they are not running. any help as to why?
So, what have you done to make them run?
What have you done to add logging so you can tell if they TRIED to run?
HAW did you add them to cron?
Have you done anything to ensure that they run in the default CRON environment (It IS different than your user environment)?
Have you checked that your crond service is running?
Let me add that cron logs its activities. Where the log messages are stored depends on your configuration. In an enterprise environment, you will probably have rsyslogd, but there may be sophisticated log solutions and log management systems like ElasticSearch-Logstash-Kibana.
okay so i have a bunch of programs that run. i put them in /etc/cron.d in a file.
The contents of file in /etc/cron.d should have the same syntax as that of a /etc/crontab entry. There should be existing files in the cron.d directory, check their contents. Make sure the file has the same permissions as those existing files.
No extra steps are required to add files to system cron directories like a users cron job.
yeah, good points all. the /etc/cron.d file with jobs is from my fedora 29 server. i copied the file, which ran perfectly in fc 29 server, to /etc/cron.d in fc 31 server and so far the jobs do not run. i have two computers with fc31 server on it and neither are they running their jobs. meanshile, i have two other computers with fc31 kde spin workstation on them, both run the cron jobs fine.
i do have the jobs pointed to logs, they say nothing and for one job set to run, it should create a file that isnt being created.
as for logs, i have no idea where these logs are being stored unless it is in the chrony folder in my log director (for cron itself not my jobs, i know where those are). i have parsed messages and not found anything and dont see any other jobs.
when i went to documentation for fedora it said it should install the package crond. there is no package crond so it cannot run. but then again, i dont get a crond service on my pcs but those seem to be running my unison job fine.
oh, as i have said, i have checked the permissions and the file has all the correct permissions acording to the other files in the directory and what it had under fc 29.
wow, i figured it out. the packages cronie and anacron-cronie are not installed by default apparently on the server but they are on the pc. i thought the package was crond. i misread. so you need to install those two on the server and then
Code:
systemctl start crond
systemctl enable crond
and that is supposed to solve it. i just did that so now i got to see it work.
also, thanks michaelk for the help and yes, i did move those files as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.