crond won't start - how to find out what's failing?

Ask questions about Arch Linux ARM. Please search before making a new topic.

crond won't start - how to find out what's failing?

Postby caderoux » Thu Aug 02, 2012 12:24 pm

crontab -e shows my crontab is empty.

[root@alarm /]# rc.d start crond
:: Starting crond daemon [FAIL]

This is on a Pogoplug, pacman -Syu shows everything is up to date.

How do I find out what's failing? - I've looked in a few logs but am not seeing anything.

/var/log/

checked out daemon.log, crond.log
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: crond won't start - how to find out what's failing?

Postby WarheadsSE » Thu Aug 02, 2012 1:33 pm

everything.log?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: crond won't start - how to find out what's failing?

Postby karog » Thu Aug 02, 2012 3:53 pm

You can always try the brute force method of looking at the script /etc/rc.d/crond and debug it like any other script; eg make a copy of it and add echo's to see where it is failing or run the commands therein one by one manually.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: crond won't start - how to find out what's failing?

Postby caderoux » Thu Aug 02, 2012 4:24 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'e')verything.log?

Pretty sure I didn't see anything there.

It did work a little.

I was having trouble getting things working. I didn't have the full path on the scripts I was trying to execute (they are meant to push notifications to me using pushover.net with the script manipulating the output of df and then using curl to send it via pushover's API. Another script is meant to zip up all the JPG images captured by a network camera after motion detection and FTPed onto the Pogoplug and move them to an area so they can be easily picked up via samba.

I saw failures in trying to delete the jpg files after they were zipped, and I managed to get a pushover notification, but now the daemon won't even start.

I set up esmtp as the articles I read said that cron likes to report its errors via sendmail. And when I sent a message with sendmail, it came to me.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: crond won't start - how to find out what's failing?

Postby caderoux » Fri Aug 03, 2012 2:32 am

$this->bbcode_second_pass_quote('WarheadsSE', 'e')verything.log?

$this->bbcode_second_pass_code('', '
[root@alarm log]# /usr/sbin/rc.d start crond
:: Starting crond daemon [FAIL]
[root@alarm log]# tail everything.log
Aug 2 19:00:55 alarm -- MARK --
Aug 2 19:20:55 alarm -- MARK --
Aug 2 19:35:46 alarm dhcpcd[249]: eth0: renewing lease of 192.168.1.197
Aug 2 19:35:46 alarm dhcpcd[249]: eth0: acknowledged 192.168.1.197 from 192.168.1.1
Aug 2 19:35:46 alarm dhcpcd[249]: eth0: leased 192.168.1.197 for 86400 seconds
Aug 2 19:55:46 alarm -- MARK --
Aug 2 20:15:46 alarm -- MARK --
Aug 2 20:35:46 alarm -- MARK --
Aug 2 20:55:46 alarm -- MARK --
Aug 2 21:15:47 alarm -- MARK --
[root@alarm log]#')
Last edited by WarheadsSE on Fri Aug 03, 2012 3:26 pm, edited 1 time in total.
Reason: adding code tags
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: crond won't start - how to find out what's failing?

Postby caderoux » Fri Aug 03, 2012 2:53 am

I found what I did from this article (https://wiki.archlinux.org/index.php/Cron) I added a -M to the parameters in /etc/conf.d/crond; removing that stopped the problem. So now back to the original errors with deleting etc...
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am

Re: crond won't start - how to find out what's failing?

Postby caderoux » Fri Aug 03, 2012 3:34 am

I think most of my problems were due to path issues - i.e. not having the full path on commands (zip needed to be /usr/bin/zip)

I need to read up more about conventions for this.

It seems silly to have scripts have to know about the full paths for cron purposes.

now I still need to figure out what to do about all this mail piling up in /var/mail/root instead of being sent.
caderoux
 
Posts: 44
Joined: Sat Jun 30, 2012 3:46 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests