This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Cron Issues? Help Please
#1
[Not Solved] Cron Issues? Help Please
Hey all

So im having a bit of a strange issue which I cant seem to solve myself, and Im hoping someone can help me with it

I was wanting to setup a simple cron script to run every 10 min's on one of my websites
I made the script and tested it, and it worked fine, I then went to add the cron in the control panel and that added with no problems.

However, the script didnt want to run, and I couldn't figure out why.
I gave up at that point and decided to attack it another day, which was today

I made a simple php script to write "test" to a text file, and loaded that into cron.
Still nothing

So I did a grop for CRON on the syslog and found that the php i was using a few days ago was running every 10 mins.
and the one I just added isnt showing up anywhere

I checked the /var/spool/cron/crontabs/www-data and found the second test php was in there, and nothing aobut the first one, which is the one thats running.

Im not sure where to go from here, Anyone got any ideas?
Im sure its something stupid I have missed

Quick update

I deleted the test cron from the web interface, and checked the spool/cron www-data and can confirm that its gone from there

however the test cron is still showing in syslog every min, and im not sure where its being called from
And the test cron doesnt seems to be running properly either as the text file it writes to is empty
Reply
Thanks given by:
#2
[Not Solved] RE: Cron Issues? Help Please
You need to check the permissions for the files and folders: http://forums.sentora.org/showthread.php?tid=491
Also, I think the cron service was not restarted properly. Try doing it manually.
Cron jobs are loaded only once during startup and are not 'read' each time the cron runs, therefore a restart of the service will reload the new/changed cron jobs.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support helpful? Donate HERE
Help me to help you by getting your domains using this link:
GoDaddy - Domains
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
Disk Quota Issues JSmith 4 83 10 hours ago
Last Post: JSmith
Cron not running JonathanNet 5 142 07-11-2017, 01:04 AM
Last Post: TGates
Issues FatherJasper 2 188 06-29-2017, 09:04 PM
Last Post: FatherJasper

Forum Jump:


Users browsing this thread: 1 Guest(s)