[root@centos admin]# chkconfig httpd on
Note: Forwarding request to 'systemctl enable httpd.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@centos admin]# systemctl daemon-reload
[root@centos admin]# sh /script/restart-all
Redirecting to /bin/systemctl restart rsyslog.service
-------------------------------------------------------------------
Restarting httpry (via systemctl): [ OK ]
-------------------------------------------------------------------
*** Process for MYSQL/MARIADB service ***
- Process: restart
Shutting down MySQL. SUCCESS!
Starting MySQL.170829 16:07:05 mysqld_safe Logging to '/var/lib/mysql/server.myserver.com.err'.
170829 16:07:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
SUCCESS!
-------------------------------------------------------------------
*** Process for BIND service ***
- Process: restart
Stopping named (via systemctl): [ OK ]
Starting named (via systemctl): [ OK ]
-------------------------------------------------------------------
Redirecting to /bin/systemctl restart php-fpm.service
-------------------------------------------------------------------
*** Process for HTTPD service ***
- Process: restart
Redirecting to /bin/systemctl stop httpd.service
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
-------------------------------------------------------------------
*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process found
Starting qmail-toaster: svscan.
-------------------------------------------------------------------
Redirecting to /bin/systemctl restart kloxo-web.service
-------------------------------------------------------------------
Redirecting to /bin/systemctl restart kloxo-php.service
-------------------------------------------------------------------
Redirecting to /bin/systemctl restart kloxo-wrap.service
-------------------------------------------------------------------
- For help, type '/script/restart-all [--help|-h]'
[root@centos admin]# systemctl status httpd.service
? httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Uto 2017-08-29 16:07:10 CEST; 21s ago
Docs: man:httpd.service(8)
Process: 7528 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 7528 (code=exited, status=1/FAILURE)
Kol 29 16:07:10 server.myserver.com systemd[1]: Starting The Apache HTTP Server...
Kol 29 16:07:10 server.myserver.com httpd[7528]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
Kol 29 16:07:10 server.myserver.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Kol 29 16:07:10 server.myserver.com systemd[1]: Failed to start The Apache HTTP Server.
Kol 29 16:07:10 server.myserver.com systemd[1]: Unit httpd.service entered failed state.
Kol 29 16:07:10 server.myserver.com systemd[1]: httpd.service failed.