Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want a service to be start at 8:00 and be ended in 14:00 automatically

i already do this manualy by:

/etc/init.d/ start

/etc/init.d/ stop

i think it should be related to cron jobs. any idea?

share|improve this question

migrated from Mar 2 '10 at 22:52

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted
minutes | hour | day | month | day of week | username | command
0         8      *     *       *             myuser    /etc/init.d/ start
0         14     *     *       *             myuser    /etc/init.d/ stop

Replace myuser with whatever is appropriate. (probably root)

Also, belongs on serverfault or superuser

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.