Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Cron in alpha 5?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Cron in alpha 5?
25th Feb, 2013, 06:24 PM
Post: #1
angriest Offline
Registered
Posts: 23
Joined: Jan 2013
Reputation: 1
Question Cron in alpha 5?
Hi, does anyone know if cron is enabled by default in alpha 5? It used to be listed as a service in xbian-config, but it's not in the new version. I've tried crontab - e, but the script named in crontab doesn't run at the listed time. I've set the time and locale correctly and the date command is showing what I'd expect. Any ideas?
Find all posts by this user
Quote this message in a reply
25th Feb, 2013, 07:34 PM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Cron in alpha 5?
Yes cron just works, if you want to see it in xbian-config just manually add it by selecting the "..." on the bottom of the list.
Maybe you need to restart cron after you edited it.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
26th Feb, 2013, 05:59 AM
Post: #3
angriest Offline
Registered
Posts: 23
Joined: Jan 2013
Reputation: 1
RE: Cron in alpha 5?
Thanks for the confirmation, that's helpful.

It is indeed working for me, but only when running at intervals (e.g. */1) but not at specified times, so I think there must be a time zone problem on my pi. Will look into it and report back in case other people are having the same problem.
Find all posts by this user
Quote this message in a reply
26th Feb, 2013, 07:07 AM
Post: #4
angriest Offline
Registered
Posts: 23
Joined: Jan 2013
Reputation: 1
RE: Cron in alpha 5?
Ok, fixed. Had to edit /etc/timezone and change it to Europe/London.
Find all posts by this user
Quote this message in a reply
26th Feb, 2013, 07:13 AM
Post: #5
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Cron in alpha 5?
You can also change the timezone from within xbian-config

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
26th Feb, 2013, 08:08 AM
Post: #6
angriest Offline
Registered
Posts: 23
Joined: Jan 2013
Reputation: 1
RE: Cron in alpha 5?
(26th Feb, 2013 07:13 AM)CurlyMo Wrote:  You can also change the timezone from within xbian-config

Yes, thanks, had already done that, but was set to etc/UTC in /etc/timezone (which I think should be the same as GMT anyway, but I'm never quite sure with timezones...). Does xbian-config set the timezone to /etc/timezone or to somewhere else? The setting had 'stuck' correctly in xbian-config, btw.

Anyway, perhaps timezone is not the issue, as the problem was back after a reboot.

Code:
sudo service cron restart

made everything work, even though timezone is set correctly, and stays set correctly through a reboot. I'll just manually restart cron after reboots, no biggie.
Find all posts by this user
Quote this message in a reply
26th Feb, 2013, 04:43 PM
Post: #7
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: Cron in alpha 5?
(26th Feb, 2013 08:08 AM)angriest Wrote:  I'll just manually restart cron after reboots, no biggie.

Does perhaps...
Terminal
nano /etc/rc.local
...help to avoid manual restarts? You could try to put the restart command in here, so that it gets executed at start.
Find all posts by this user
Quote this message in a reply
27th Feb, 2013, 05:44 AM
Post: #8
angriest Offline
Registered
Posts: 23
Joined: Jan 2013
Reputation: 1
RE: Cron in alpha 5?
(26th Feb, 2013 04:43 PM)namtih Wrote:  
(26th Feb, 2013 08:08 AM)angriest Wrote:  I'll just manually restart cron after reboots, no biggie.

Does perhaps...
Terminal
nano /etc/rc.local
...help to avoid manual restarts? You could try to put the restart command in here, so that it gets executed at start.

Thanks, good call. That seems to work for me.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 02:57 AM Powered By MyBB, © 2002-2025 MyBB Group.