will lthis cron restart apache every 3 hours?

This is a discussion on will lthis cron restart apache every 3 hours? within the Apache Web Server forums, part of the Web Server and Related Forums category; 0 */3 * * * apachectl restart...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 6 Days Ago
TriAdmin
 
Posts: n/a
Default will lthis cron restart apache every 3 hours?

0 */3 * * * apachectl restart


  #2 (permalink)  
Old 6 Days Ago
phantom
 
Posts: n/a
Default Re: will lthis cron restart apache every 3 hours?

"TriAdmin" <lof@invalid.com> wrote in message
news:6DYTj.71488$vr3.29007@bignews2.bellsouth.net. ..
>0 */3 * * * apachectl restart


as long as apachectl is in cron's path.
You might want to use the full path and do a graceful restart:
/usr/sbin/apachectl graceful

(although /usr/sbin may not be where your apachectl is)


  #3 (permalink)  
Old 6 Days Ago
TriAdmin
 
Posts: n/a
Default Re: will lthis cron restart apache every 3 hours?

"phantom" <nobody@blueyonder.invalid> wrote in message
news:ua%Tj.20579$yD2.18935@text.news.virginmedia.c om...
> "TriAdmin" <lof@invalid.com> wrote in message
> news:6DYTj.71488$vr3.29007@bignews2.bellsouth.net. ..
>>0 */3 * * * apachectl restart

>
> as long as apachectl is in cron's path.
> You might want to use the full path and do a graceful restart:
> /usr/sbin/apachectl graceful
>
> (although /usr/sbin may not be where your apachectl is)




thanks!


 


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:48 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0