Found following on systemctl status httpd.service on Cent OS 7. Apache 2.4.41 is compiled and installed. There is not such message on Cent OS 6.
systemd[1]: Can't open PID file /var/run/httpd.pid (yet?) after start: No such file or directory
Even though this showing in status server start and stop are working fine.
Here is service file:
cat /run/systemd/generator.late/httpd.service
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/rc.d/init.d/httpd
Description=LSB: start and stop Apache HTTP Server
Before=shutdown.target
After=remote-fs.target
After=network-online.target
After=nss-lookup.target
After=distcache.service
Wants=network-online.target
Conflicts=shutdown.target
[Service]
Type=forking Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=no
PIDFile=/var/run/httpd.pid
ExecStart=/etc/rc.d/init.d/httpd start
ExecStop=/etc/rc.d/init.d/httpd stop
ExecReload=/etc/rc.d/init.d/httpd reload
/etc/httpd/conf/extra/httpd-mpm.conf
<IfModule !mpm_netware_module>
PidFile "/var/run/httpd.pid"
</IfModule>
Any idea?