Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 21st, 2004, 07:48 PM
dasnov dasnov is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 157 dasnov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Creating Server Restart Batch

Can anyone help me on making a batch file that basicly will turn apache off, then turn it back on. This will be a good tool, so I can have it scheduled to run throughout the day, since apache allways seems to stop responding after so many hours of being on. I dont really know much about batch files so I kind of need some help...

Thanks

Reply With Quote
  #2  
Old August 21st, 2004, 10:56 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Creating Server Restart Batch

you want to restart the apache, it's just one line, but it depends on what system you are using (and where apache is installed).

usualy something like

/etc/init.d/apache restart
or httpd restart
or even apachectl restart

you can just put that in your cron (as root)

// btw, this is server administration..

Reply With Quote
  #3  
Old August 21st, 2004, 10:57 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'General Chat' to 'Server Administration' by zombie.

Reason:

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Creating Server Restart Batch


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway