Question

Graceful restart requested, doing restart

Hello, every sunday morning my Ubuntu server does a restart and I dont know why. These are the messages from the log files:

[Sun Nov 03 07:35:03 2013] [notice] Graceful restart requested, doing restart

[Sun Nov 03 07:35:04 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.17-5+debphp.org~precise+1 configured – resuming normal operations

(If it has to do anything with PHP I used these lines when I updated PHP to version 5.4) :

sudo apt-get install python-software-properties apt-get dist-upgrade sudo apt-get upgrade

sudo add-apt-repository ppa:ondrej/php5-oldstable sudo apt-get update sudo apt-get upgrade

Thanks in advance!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

logrotate content:

# see "man logrotate" for details
# rotate log files weekly
weekly

# use the syslog group by default, since this is the owning group
# of /var/log/syslog.
su root syslog

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

Could the cause of this problem be the fact that I am calling date_default_timezone_set() at times?

Thanks!

Hi. Im having the same problem, but in my case, the apache restart is restarting frequently, see my error log:

[Sun Nov 15 00:11:36.895033 2020] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 15 00:12:47.058426 2020] [mpm_prefork:notice] [pid 13438] AH00171: Graceful restart requested, doing restart
[Sun Nov 15 00:12:47.598797 2020] [ssl:warn] [pid 13438] AH01909: www.universonoobz.com.br:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:12:48.003024 2020] [mpm_prefork:notice] [pid 13438] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Nov 15 00:12:48.003055 2020] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 15 00:12:54.820531 2020] [mpm_prefork:notice] [pid 13438] AH00171: Graceful restart requested, doing restart
[Sun Nov 15 00:12:55.221861 2020] [ssl:warn] [pid 13438] AH01909: www.universonoobz.com.br:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:12:55.455911 2020] [ssl:warn] [pid 13438] AH01909: www.familiafooddelivery.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:12:55.571234 2020] [mpm_prefork:notice] [pid 13438] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Nov 15 00:12:55.571263 2020] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 15 00:13:17.307437 2020] [core:error] [pid 13438] AH00546: no record of generation 24 of exiting child 30316
[Sun Nov 15 00:13:43.954317 2020] [core:error] [pid 13438] AH00546: no record of generation 6 of exiting child 24369
[Sun Nov 15 00:13:57.977622 2020] [core:error] [pid 13438] AH00546: no record of generation 8 of exiting child 25018
[Sun Nov 15 00:14:02.987831 2020] [core:error] [pid 13438] AH00546: no record of generation 20 of exiting child 28441
[Sun Nov 15 00:14:05.495595 2020] [mpm_prefork:notice] [pid 13438] AH00171: Graceful restart requested, doing restart
[Sun Nov 15 00:14:06.213564 2020] [ssl:warn] [pid 13438] AH01909: www.universonoobz.com.br:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:14:06.455696 2020] [ssl:warn] [pid 13438] AH01909: www.familiafooddelivery.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:14:06.637107 2020] [mpm_prefork:notice] [pid 13438] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Nov 15 00:14:06.637159 2020] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 15 00:14:13.450406 2020] [mpm_prefork:notice] [pid 13438] AH00171: Graceful restart requested, doing restart
[Sun Nov 15 00:14:14.097504 2020] [ssl:warn] [pid 13438] AH01909: www.familiafooddelivery.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 15 00:14:14.211056 2020] [mpm_prefork:notice] [pid 13438] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Nov 15 00:14:14.211132 2020] [core:notice] [pid 13438] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 15 00:14:36.925862 2020] [core:error] [pid 13438] AH00546: no record of generation 26 of exiting child 30450

Please, help me. Thanks.

If you run cPanel on your server you can fix this by going to WHM panel at: <br>Service Configuration » Apache Configuration » Piped Log Configuration, checkbox “Enable Piped Apache Logs” then “Save”. <br> <br>That worked for me on CentOS 6.5.