/var/log/cron is empty

Dmitriy Tarasov

Verified User
Joined
Nov 5, 2006
Messages
43
Hello
Could you, please, explain me why I have empty the following files

/var/log/cron
/var/log/cron.1
/var/log/cron.2
/var/log/cron.3
/var/log/cron.4

in spite of the fact that I have cron jobs.
Thank you.
 
hi,

try this in SSH at ROOT level :

( 2 commands )

service syslog restart

and this :

service crond restart


after few minuts go to see if it better !!
 
hello,

I am having the same problem, I tried both commands, but the system returns
syslog: unrecognized service
crond: unrecognized service
Strange this is that cron is working and other system logs are ok.
The server is Ubuntu server 32 bit

Thanks
 
Thx.
when I ran the cron restart command you posted, i got an error that i should use
service cron restart
and that worked, but i can't get syslog to restart, I've tried your command and syslog, syslogd, with both service and init.d
No luck:(
Also, looking at some HUGE syslog files, I noticed that the cron that is supposed to run everyday at 1 o clock, runs at 1AM, 1:01AM, 1:02AM, etc...BUT nothing happens.
The script works, it's 755, and other cron scrips in the same directory seem to be working....
 
What information do you need?
I have several cron jobs on the same site. Some are running, some are not (the last ones I added do not run)
It's a VERY strange and frustrating experience...
 
Thank you zEitEr,
I fixed it, it was a problem with paths. I din't want to change them so I did a wget, it works now. Thanlk you VERY much, it was driving me crazy.
One more thing, do you know where are the error logs from cron on Ubuntu?
 
I'm not sure, whether cron logs any errors anywhere by default. I know for sure, that it sends reports to email box, if any occurs.
 
Back
Top