LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-08-2006, 11:27 AM   #1
martien
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
I'm looking for automatic reloading apache script


Hey all. I'm looking for script, that will automatic reload apache and bind in every 10 minutes. At the moment I have one, that check in every 10 minutes, if apache service is down, it start it.. Please help me.
 
Old 04-09-2006, 04:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,379

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you already have one? what do you mean??

erm...
Code:
[ "$(pidof httpd)" ] || service httpd restart
should do it, just run that on a cronjob.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
permission erros on reloading apache and bind Pauly Red Hat 1 04-06-2005 05:52 AM
need help with a permissions issue reloading bind and apache Pauly Linux - General 1 04-05-2005 05:47 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
Automatic Install Script dtheorem Linux From Scratch 1 11-07-2003 01:16 PM
Automatic Script micray Linux - Newbie 1 05-11-2002 04:53 PM


All times are GMT -5. The time now is 05:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration