Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7650789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:20:33+00:00 2026-05-31T11:20:33+00:00

I have a server running virtual hosts that get changed quite often. Rather than

  • 0

I have a server running virtual hosts that get changed quite often. Rather than someone actually going to the server and typing in the apache restart command I was thinking of making a cron (every 1, 5 or 10 minutes, maybe only during working hours, when changes to the virtual hosts are actually made) to restart apache gracefully.

sudo apachectl graceful

I found an explanation here on stackoverflow that goes like this:

Graceful does not wait for active connections to die before doing a “full restart”. It is the same as doing a HUP against the master process. Apache keeps children (processes) with active connections alive, whilst bringing up new children with new configuration (or nicely cleared caches) for each new connection. As the old connections die off, those child processes are killed as well to make way for the new ones.

Would this mean that there would be little to no impact on the visitor’s experience (long wait times), or should I just stick with manually restarting apache?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:20:34+00:00Added an answer on May 31, 2026 at 11:20 am

    Sorry, but I don’t consider that a good idea.

    If you’re planning on restarting Apache every X minutes, even though it may not need it, I see plenty of downside there but no upside.

    If you’re just checking and restarting when needed, such as with a process running which can detect when a change is needed, that might be okay.

    Personally, I wouldn’t even do that since I’d rather keep control over deployment changes. For example, if you wanted to get a whole lot of stuff installed during the working day ready for restart but not actually activate it till quiet time.

    Of course, in a robust environment, you’d be running multiple servers so you could offline them one at a time for changes, without affecting anyone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say that we have a server running multiple virtual hosts. Somefiles and directories
On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts
I have a server that has several virtual machines running on it. I'm trying
I have a virtual machine running windows 2003 server. It is on a separate
I have a shared development server with many virtual directories running off one of
I have an OLD server running DG/UX that will in the near future be
The situation is: I have one Debian Server running LAMP with one Virtual Host
I have setup up 2 virtual hosts that share the same IP on a
I have a server running Gentoo 2.6.12 r6 and I want to run Apache
I have a production server running with the following flag: - XX:+HeapDumpOnOutOfMemoryError Last night

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.