root@server:/usr/local/sbin# apache2ctl stop
root@server:/usr/local/sbin# apache2ctl graceful
httpd not running, trying to start
root@server:/usr/local/sbin# systemctl status apache2.service
? apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d +-apache2-systemd.conf
Active: inactive (dead) since Mon 2019-06-10 01:04:13 MDT; 17s ago
Process: 27370 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 11462 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Main PID: 1849 (code=exited, status=0/SUCCESS)
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted0]
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted0]
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted1].c
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted1].c
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted1]
Jun 08 19:11:24 server.[redacted2].com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/www/[redacted1]
Jun 08 19:11:24 server.[redacted2].com systemd[1]: Started The Apache HTTP Server.
Jun 09 06:25:04 server.[redacted2].com systemd[1]: Reloading The Apache HTTP Server.
Jun 09 06:25:04 server.[redacted2].com systemd[1]: Reloaded The Apache HTTP Server.
Jun 10 01:04:13 server.[redacted2].com apachectl[27370]: httpd (no pid file) not running
Output after customizing the apache2ctl script and restarting it:
root@server:/usr/local/sbin# apache2ctl_custom graceful
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
root@server:/usr/local/sbin# systemctl status apache2.service
? apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d +-apache2-systemd.conf
Active: active (running) since Mon 2019-06-10 01:04:50 MDT; 4s ago
Process: 27370 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 11462 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 27432 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 27444 (apache2)
Tasks: 6 (limit: 2318)
CGroup: /system.slice/apache2.service
+-27444 /usr/sbin/apache2 -k start
+-27448 /usr/sbin/apache2 -k start
+-27449 /usr/sbin/apache2 -k start
+-27451 /usr/sbin/apache2 -k start
+-27454 /usr/sbin/apache2 -k start
+-27455 /usr/sbin/apache2 -k start
Jun 10 01:04:50 server.[redacted2].com systemd[1]: Starting The Apache HTTP Server...
Jun 10 01:04:50 server.[redacted2].com systemd[1]: Started The Apache HTTP Server.
Output showing how to reproduce the issue:
root@server: /usr/local/ sbin# apache2ctl stop /usr/local/ sbin# apache2ctl graceful /usr/local/ sbin# systemctl status apache2.service system/ apache2. service; enabled; vendor preset: enabled) system/ apache2. service. d
+-apache2- systemd. conf /usr/sbin/ apachectl stop (code=exited, status=0/SUCCESS) /usr/sbin/ apachectl graceful (code=exited, status=0/SUCCESS)
root@server:
httpd not running, trying to start
root@server:
? apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/
Drop-In: /lib/systemd/
Active: inactive (dead) since Mon 2019-06-10 01:04:13 MDT; 17s ago
Process: 27370 ExecStop=
Process: 11462 ExecReload=
Main PID: 1849 (code=exited, status=0/SUCCESS)
Jun 08 19:11:24 server. [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted0] [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted0] [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted1] .c [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted1] .c [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted1] [redacted2] .com apachectl[1408]: AH00112: Warning: DocumentRoot [/srv/apache2/ www/[redacted1] [redacted2] .com systemd[1]: Started The Apache HTTP Server. [redacted2] .com systemd[1]: Reloading The Apache HTTP Server. [redacted2] .com systemd[1]: Reloaded The Apache HTTP Server. [redacted2] .com apachectl[27370]: httpd (no pid file) not running
Jun 08 19:11:24 server.
Jun 08 19:11:24 server.
Jun 08 19:11:24 server.
Jun 08 19:11:24 server.
Jun 08 19:11:24 server.
Jun 08 19:11:24 server.
Jun 09 06:25:04 server.
Jun 09 06:25:04 server.
Jun 10 01:04:13 server.
Output after customizing the apache2ctl script and restarting it:
root@server: /usr/local/ sbin# apache2ctl_custom graceful /usr/local/ sbin# systemctl status apache2.service system/ apache2. service; enabled; vendor preset: enabled) system/ apache2. service. d
+-apache2- systemd. conf /usr/sbin/ apachectl stop (code=exited, status=0/SUCCESS) /usr/sbin/ apachectl graceful (code=exited, status=0/SUCCESS) /usr/sbin/ apachectl start (code=exited, status=0/SUCCESS) slice/apache2. service
Invoking 'systemctl start apache2'.
Use 'systemctl status apache2' for more info.
root@server:
? apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/
Drop-In: /lib/systemd/
Active: active (running) since Mon 2019-06-10 01:04:50 MDT; 4s ago
Process: 27370 ExecStop=
Process: 11462 ExecReload=
Process: 27432 ExecStart=
Main PID: 27444 (apache2)
Tasks: 6 (limit: 2318)
CGroup: /system.
+-27444 /usr/sbin/apache2 -k start
+-27448 /usr/sbin/apache2 -k start
+-27449 /usr/sbin/apache2 -k start
+-27451 /usr/sbin/apache2 -k start
+-27454 /usr/sbin/apache2 -k start
+-27455 /usr/sbin/apache2 -k start
Jun 10 01:04:50 server. [redacted2] .com systemd[1]: Starting The Apache HTTP Server... [redacted2] .com systemd[1]: Started The Apache HTTP Server.
Jun 10 01:04:50 server.