install_httpd-2.4.sh: Start apache2 after installation, even if the service was not running.

This commit is contained in:
root 2018-02-18 01:13:41 +01:00
parent a50be3ed8b
commit 77170e9872

View File

@ -3945,28 +3945,32 @@ if [[ -n "$_httpd_current_version" ]]; then
fi # if [[ -n "$_httpd_current_version" ]] fi # if [[ -n "$_httpd_current_version" ]]
if $START_APACHE_WEBSERVICE ; then # ---
echo "" >> ${_logdir}/main.log # - Start apache webservice
echo "" >> ${_logdir}/main.log # ---
echo "## - Start Apache Webserver" >> ${_logdir}/main.log echo "" >> ${_logdir}/main.log
echo "## -" >> ${_logdir}/main.log echo "" >> ${_logdir}/main.log
echo "" echo "## - Start Apache Webserver" >> ${_logdir}/main.log
echononl "\tStarting Apache Webserver.." echo "## -" >> ${_logdir}/main.log
if $SYSTEMD_SUPPORTED ; then echo ""
echononl "\tStarting Apache Webserver.."
if $SYSTEMD_SUPPORTED ; then
echo "systemctl start apache2" >> ${_logdir}/main.log echo "systemctl start apache2" >> ${_logdir}/main.log
systemctl start apache2 >> ${_logdir}/main.log 2>&1 systemctl start apache2 >> ${_logdir}/main.log 2>&1
else else
echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log
/etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1 /etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1
fi fi
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo_ok echo_ok
else else
echo_failed echo_failed
warn "Starting Apache Webservice failed!." warn "Starting Apache Webservice failed!."
fi
fi fi
# ---
# - Reenable crontab for user root
# ---
echo echo
echononl "\tReenable crontab for user root .." echononl "\tReenable crontab for user root .."
echo "" >> ${_logdir}/main.log echo "" >> ${_logdir}/main.log