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
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
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 - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
SO MANY SECURITY ISSUES!! Sentora needs serious updates! aaronlroberts 9 22 ,223 11-24-2018, 01:48 AM
Last Post: siulian
Disk Quota Issues JSmith 5 14 ,082 11-16-2018, 12:39 AM
Last Post: nibaldo
Uninstalled but have cron daemon issues now HELP suprastan 1 5 ,302 10-07-2018, 03:26 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)