|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
end service started by cron
i am rather new to this whole cron thing, but i have it set up to start up a service every morning at 1 am. i would only like that service to run until 7 am, so that when i wake up, its not running anymore. how can i limit the time that the job runs? or do i create another cron job to end the service?
thanks in advance craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage |
|
|
|
|
|
#2 |
|
Member (11 bit)
Join Date: Apr 2003
Posts: 1,505
|
I think you answered your own question. The easiest thing to me would be creating another cron job to shut down the service at a given time each day.
|
|
|
|
|
|
#3 |
|
usual suspect
Join Date: Jun 2002
Location: not here
Posts: 2,051
|
alright, i did that. i am running ClarkConnect, and using webmin, i created the cron job, although its part of the Cluster Services section. i don't have a cluster, but i can just set the job for one server, which i did. i set the job to start at 1am and i set another to kill it at 7am. in webmin, it gives you the ability to click Run Now to test it, and both the starting and stopping works perfectly.
however the job did not run last night like it was supposed to. i confirmed this morning by manually clicking Run Now, and it worked just fine. i am going to see if it runs tonight, but hopefully you can offer some insight thanks craig |
|
|
|
|
|
#4 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Looking in the cron logs can be helpful in troubleshooting.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Friend's Computer Problems... | yellowsnow | Networking & Online Security | 2 | 11-13-2006 10:06 AM |
| Computer Acronyms | Floppyman | Computer Hardware | 156 | 06-18-2006 07:25 AM |
| unexplainable crashes/freezes | bobby-jo | Networking & Online Security | 4 | 02-24-2006 12:21 AM |
| AffiliateTarget.com | rapidarp | Networking & Online Security | 23 | 12-03-2005 01:15 PM |
| IE Problems | IE_DrivesMeInsane | Internet, Web Applications, & The Cloud | 7 | 03-14-2005 09:00 AM |