Koozali.org: home of the SME Server

How to edit or remove cron job

Offline bradleyj00

  • **
  • 37
  • +0/-0
How to edit or remove cron job
« on: May 21, 2013, 02:06:03 PM »
I have configured a cron job to execute a php script. Unfortunately, it requires some troubleshooting, and I need to edit or remove the recently added cron job.

It was added using a custom template as outlined in the wiki,
http://wiki.contribs.org/Cron_entry

Hoping someone can offer a little direction?

Thanks,
Jim

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How to edit or remove cron job
« Reply #1 on: May 21, 2013, 02:45:50 PM »
bradleyj00

Templates make undoing your changes very easy, that's part of their beauty.

To undo or reverse what you did, simply delete the the custom template, expand & restart:

rm /etc/e-smith/templates-custom/etc/crontab/your_file_name
expand-template /etc/crontab
service crond restart

I strongly suggest you take a look at the Template Tutorial Howto
http://wiki.contribs.org/Template_Tutorial
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bradleyj00

  • **
  • 37
  • +0/-0
Re: How to edit or remove cron job
« Reply #2 on: May 21, 2013, 03:39:35 PM »
Thanks! Really appreciate your help.