[arch-general] System Cron jobs not running
I made a custom script that I want to put into the weekly system cron job and according to my logs the script is not running weekly like it should. -rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh According to my information the permission are correct as only root should be able to run system cron jobs. This is the only thing I have seen in my logs. Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an acron - skipping Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run) I do not have Anacron installed, and my script does not run weekly like it is supposed too, I would like fix this problem. Any suggestions are welcome! R7h0re4
On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4 <r7h0re4@att.net> wrote:
I made a custom script that I want to put into the weekly system cron job and according to my logs the script is not running weekly like it should.
-rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh
According to my information the permission are correct as only root should be able to run system cron jobs.
This is the only thing I have seen in my logs.
Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an acron - skipping Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run)
I do not have Anacron installed, and my script does not run weekly like it is supposed too, I would like fix this problem.
Any suggestions are welcome!
R7h0re4
Are you using cronie, dcron or some other cron? cronie provides anacron.
Karol Blazewicz <karol.blazewicz@gmail.com> writes:
On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4 <r7h0re4@att.net> wrote:
I made a custom script that I want to put into the weekly system cron job and according to my logs the script is not running weekly like it should.
-rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh
According to my information the permission are correct as only root should be able to run system cron jobs.
This is the only thing I have seen in my logs.
Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an acron - skipping Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run)
I do not have Anacron installed, and my script does not run weekly like it is supposed too, I would like fix this problem.
Any suggestions are welcome!
R7h0re4
Are you using cronie, dcron or some other cron? cronie provides anacron.
I do have Cronie installed but I am still wondering why the script won't run if put in the weekly cron folder. My understanding is the documentation is a little week concerning this topic on the Wiki. Do I need to fill a bug report, or is something out of place. R7h0re4
Maybe I'm getting it wrong, but is dcron the one that runs the cron.hourly/daily and so on folders as the crontab in the wiki with reference to that default crontab for dcron, not cronie On Fri 21 Oct 2011 05:55:33 PM CEST, R7h0re4 wrote:
Karol Blazewicz<karol.blazewicz@gmail.com> writes:
On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4<r7h0re4@att.net> wrote:
I made a custom script that I want to put into the weekly system cron job and according to my logs the script is not running weekly like it should.
-rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh
According to my information the permission are correct as only root should be able to run system cron jobs.
This is the only thing I have seen in my logs.
Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an acron - skipping Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run)
I do not have Anacron installed, and my script does not run weekly like it is supposed too, I would like fix this problem.
Any suggestions are welcome!
R7h0re4
Are you using cronie, dcron or some other cron? cronie provides anacron.
I do have Cronie installed but I am still wondering why the script won't run if put in the weekly cron folder. My understanding is the documentation is a little week concerning this topic on the Wiki. Do I need to fill a bug report, or is something out of place.
R7h0re4
participants (3)
-
Alex Ferrando
-
Karol Blazewicz
-
R7h0re4