install_httpd-2.4.sh: Start apache2 after installation, even if the service was not running.
This commit is contained in:
parent
a50be3ed8b
commit
77170e9872
@ -3945,28 +3945,32 @@ if [[ -n "$_httpd_current_version" ]]; then
|
||||
fi # if [[ -n "$_httpd_current_version" ]]
|
||||
|
||||
|
||||
if $START_APACHE_WEBSERVICE ; then
|
||||
echo "" >> ${_logdir}/main.log
|
||||
echo "" >> ${_logdir}/main.log
|
||||
echo "## - Start Apache Webserver" >> ${_logdir}/main.log
|
||||
echo "## -" >> ${_logdir}/main.log
|
||||
echo ""
|
||||
echononl "\tStarting Apache Webserver.."
|
||||
if $SYSTEMD_SUPPORTED ; then
|
||||
echo "systemctl start apache2" >> ${_logdir}/main.log
|
||||
systemctl start apache2 >> ${_logdir}/main.log 2>&1
|
||||
else
|
||||
echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log
|
||||
/etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1
|
||||
fi
|
||||
if [ "$?" = "0" ]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
warn "Starting Apache Webservice failed!."
|
||||
fi
|
||||
# ---
|
||||
# - Start apache webservice
|
||||
# ---
|
||||
echo "" >> ${_logdir}/main.log
|
||||
echo "" >> ${_logdir}/main.log
|
||||
echo "## - Start Apache Webserver" >> ${_logdir}/main.log
|
||||
echo "## -" >> ${_logdir}/main.log
|
||||
echo ""
|
||||
echononl "\tStarting Apache Webserver.."
|
||||
if $SYSTEMD_SUPPORTED ; then
|
||||
echo "systemctl start apache2" >> ${_logdir}/main.log
|
||||
systemctl start apache2 >> ${_logdir}/main.log 2>&1
|
||||
else
|
||||
echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log
|
||||
/etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1
|
||||
fi
|
||||
if [ "$?" = "0" ]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
warn "Starting Apache Webservice failed!."
|
||||
fi
|
||||
|
||||
# ---
|
||||
# - Reenable crontab for user root
|
||||
# ---
|
||||
echo
|
||||
echononl "\tReenable crontab for user root .."
|
||||
echo "" >> ${_logdir}/main.log
|
||||
|
Loading…
Reference in New Issue
Block a user