[solved] cron jobs

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[solved] cron jobs

Postby permitivity » Tue Nov 12, 2013 2:14 am

I've been trying to get my pogoplug to automatically reboot once every day. I haven't had much success. Maybe someone can point out what I'm doing wrong?

I do this:

$this->bbcode_second_pass_quote('', '
')crontab -e


The online line is this:
$this->bbcode_second_pass_code('', '00 05 * * * /usr/bin/reboot')


Do I have to do something special to activate this cron job? I'm just editing the file, saving it. I know sometimes if you change a .service file, you have to reload it. I've definitely rebooted to see if it helps the reboot cron job work, but it hadn't.

I'm also wondering if I could make perform a "systemctl stop XXXX.service", and then a "systemctl start XXXX.service" a minute later to restart a program.

Thanks for any input.
Last edited by permitivity on Fri Nov 15, 2013 4:46 pm, edited 1 time in total.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: cron jobs

Postby WarheadsSE » Tue Nov 12, 2013 2:49 am

You do need to be sure that cron/cronie are operational, and ensure that /usr/bin/reboot exists (part of systemd-sysvcompat) or use /usr/bin/systemctl reboot
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: cron jobs

Postby permitivity » Fri Nov 15, 2013 3:51 am

Thanks. That worked.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Re: cron jobs

Postby WarheadsSE » Fri Nov 15, 2013 12:34 pm

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


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 12 guests