You are not logged in.

#1 2013-10-06 15:02:18

vectox
Member
Registered: 2013-10-06
Posts: 5

Cronie is not working out of the box...possible installation bug.

Just did a fresh install of Arch out of the box.  I noticed that my cron jobs haven't been working.
I dropped them in /etc/cron.daily and /etc/cron.hourly .

No cron logs are present under /var/log

I also ran crontab -e and put in a job of:
*/1 * * * * /bin/echo test >> /tmp/testing

No /tmp/testing file gets created.

I also don't see any cron process running on the system with:
ps -ef |grep -i cron

I don't see any cron process registered in systemctl after running:
systemctl | grep -i cron

I also reinstalled cronie with:
pacman -Syu cronie

No change after reinstalling cronie.
I'm sure that I could play around with cronie and get it working, but according to the guides that I've seen.....it's working out of the box with Arch.

Thoughts?

Offline

#2 2013-10-06 15:06:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cronie is not working out of the box...possible installation bug.

Did you start cronie?

Offline

#3 2013-10-06 15:07:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Cronie is not working out of the box...possible installation bug.

I'm not sure, but please be aware of this little catch that caught me a while back: https://bbs.archlinux.org/viewtopic.php … 5#p1011365

Offline

#4 2013-10-06 16:05:51

vectox
Member
Registered: 2013-10-06
Posts: 5

Re: Cronie is not working out of the box...possible installation bug.

drcouzelis wrote:

I'm not sure, but please be aware of this little catch that caught me a while back: https://bbs.archlinux.org/viewtopic.php … 5#p1011365

Possibility there...mine are links to file names and the link names do have spaces in them.
I removed the names with periods though I don't think it's getting that far along to actually execute them.

Last edited by vectox (2013-10-06 16:06:45)

Offline

#5 2013-10-06 16:09:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cronie is not working out of the box...possible installation bug.

You have to properly quote the filenames with spaces or remove the spaces and use e.g. underscores, if possible.

Offline

#6 2013-10-06 16:11:05

vectox
Member
Registered: 2013-10-06
Posts: 5

Re: Cronie is not working out of the box...possible installation bug.

karol wrote:

Did you start cronie?

Sure, I ran crond and now it's ruuning, though my
*/1 * * * * /bin/echo test >> /tmp/testing

didn't yield any results.

Keep in mind here that I'm reporting, what I suspect is, an installation bug.

My outdated copy of arch that got buggered during the systemd transition was just out of date so I did a fresh install with the latest image.
Cron doesn't appear to be enabled with systemd....which may be the main problem.

Offline

#7 2013-10-06 16:12:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cronie is not working out of the box...possible installation bug.

vectox wrote:
karol wrote:

Did you start cronie?

Cron doesn't appear to be enabled with systemd....which may be the main problem.

That's what I'm asking about: https://wiki.archlinux.org/index.php/Cr … _autostart

Offline

#8 2013-10-06 16:15:02

vectox
Member
Registered: 2013-10-06
Posts: 5

Re: Cronie is not working out of the box...possible installation bug.

I enabled everything just fine by running:
systemctl start cronie
systemctl enable cronie

All the crons are now working just fine....which I think is what karol was getting at.

Offline

#9 2013-10-06 16:15:53

vectox
Member
Registered: 2013-10-06
Posts: 5

Re: Cronie is not working out of the box...possible installation bug.

Thanks for your help all.

Offline

#10 2013-10-06 16:35:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cronie is not working out of the box...possible installation bug.

You're welcome :-)
The wiki often has useful advice on how to set things up or troubleshoot them.


Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB