how to cron a service restart

Jonathan Matthews contact at jpluscplusm.com
Mon Dec 6 10:48:48 UTC 2010


On 6 December 2010 08:32, shali Kallumpuram <vidyaserveradmin at gmail.com> wrote:
> Dear all,
> i need to restart tomcat6 regularly is there any method?? is it possible to
> cron a service restart?

Yes, it is.  Using crontab (man 1 crontab), set up a crontab (man 5
crontab) that cron (man 8 cron) will interpret and restart the service
(man 8 service).  Examples of syntax for these can be found in the
relevant man pages I've pointed you towards.

Jonathan
-- 
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html




More information about the ubuntu-users mailing list