Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: AKn on March 18, 2010, 07:15:57 AM

Title: Updating crontab schedule
Post by: AKn on March 18, 2010, 07:15:57 AM
Good day,

On my local sme server machine, I've installed Crontab Manager. Using the interface in server-manager, I've been able to add items to the schedule. Now, I'm trying to make some updates on a remote sme server using ssh access and don't have access to Crontab Manager. I found the following command suggestions in a 2007 posting.

Code: [Select]
pico -w  /etc/e-smith/templates-custom/etc/crontab/your_file_name

add your cron entries

/sbin/e-smith/expand-template etc/crontab

more /etc/crontab - just to verify your new entry is there, then

/etc/e-smith/events/actions/restart-crond

However, it does not work because 'restart-crond' is no longer available. I've tried "service crond restart" which stopped and started crond. However the new scheduled item does not seem to run (no evidence that the job ran). Can someone give some updated instructions?

ak
Title: Re: Updating crontab schedule
Post by: janet on March 18, 2010, 09:41:36 AM
AKn

Using a ssh remote connection to your server type
elinks
that will start server manager (text version), then navigate to your required server manager panel. The mouse should work OK.
Title: Re: Updating crontab schedule
Post by: AKn on March 18, 2010, 10:20:52 AM
Good day,

Thanks, I learned something new. However, this server does not have the Crontab Manager installed. And I'd like to know how to do this with a command. So I'm still stuck and would appreciate some help.

ak
Title: Re: Updating crontab schedule
Post by: mmccarn on March 18, 2010, 01:32:41 PM
Place raw scripts into any of:
 /etc/cron.hourly
 /etc/cron.daily
 /etc/cron.weekly
 /etc/cron.monthly

Or, create your own cron-style text file with arbitrary crontab commands and place it in /etc/cron.d

Or, run 'crontab -e' to edit the crontab for "root" (or for some other user).