Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cron errors : dcron / vixie-cron environment [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Wed Jan 20, 2010 3:16 pm    Post subject: cron errors : dcron / vixie-cron environment [Solved] Reply with quote

hi,

I have this log in /var/log/cron.log
Code:

20-Jan-10 15:11  failed user root parsing SHELL=/bin/bash
20-Jan-10 15:11  failed user root parsing PATH=/sbin:/bin:/usr/sbin:/usr/bin
20-Jan-10 15:11  failed user root parsing MAILTO=root
20-Jan-10 15:11  failed user root parsing HOME=/
20-Jan-10 15:20  FILE /var/spool/cron/crontabs/root USER root pid 27059 cmd root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons
20-Jan-10 15:30  FILE /var/spool/cron/crontabs/root USER root pid 27062 cmd root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons


I had dcron installed and because it does not support setting environment it unemerged it and emerged vixie-cron.

Unfortunately I still have the same problem.

can someone help me?

thanks,
luca.


Last edited by petrasl on Thu Jan 21, 2010 12:19 am; edited 1 time in total
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Wed Jan 20, 2010 3:58 pm    Post subject: Reply with quote

Latest stable vixie-cron is 4.1-r10, and I just grepped the source for "parsing". This error message is not there. Are you absolutely sure you restarted the cron service after 20-Jan-10 15:11? And that you only have one cron running? Check "ps -A | grep cron". (Edit: I believe the dcron binary is called "crond", while vixie's is only called "cron")

If you are certain, this message must be printed by one of vixie-cron's libraries. What does your crontab look like?
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Wed Jan 20, 2010 4:02 pm    Post subject: Reply with quote

Also, with the gentoo default system logger setup, vixie-cron messages aren't logged to /var/log/cron.log, but to /var/log/messages. Make sure you're not looking at an old log.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Wed Jan 20, 2010 10:11 pm    Post subject: Reply with quote

Thanks for replay.

While emerging vixie-cron I had to unmerge dcron ; I also modified the rc-update but I forgat the old process of dcron which was still running.

I killed it and starting vixie-cron.

Can I delete the old /vat/log/cron.log ?

Thanks.
Luca
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Wed Jan 20, 2010 11:28 pm    Post subject: Reply with quote

petrasl wrote:
Can I delete the old /vat/log/cron.log ?

Yes, it serves no purpose any longer.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Thu Jan 21, 2010 12:19 am    Post subject: Reply with quote

pianosaurus wrote:
petrasl wrote:
Can I delete the old /vat/log/cron.log ?

Yes, it serves no purpose any longer.


deleted!

vixie-cron seams to work ( /var/log/messages )
Code:

Jan 21 01:10:01 localhost cron[29928]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Jan 21 01:10:01 localhost cron[29933]: (root) CMD (root    test -x /usr/sbin/run-crons && /usr/sbin/run-crons)


Many thanks for your help.

All the best,
Luca
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum