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" ]]
|
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 ""
|
||||||
echo "systemctl start apache2" >> ${_logdir}/main.log
|
echononl "\tStarting Apache Webserver.."
|
||||||
systemctl start apache2 >> ${_logdir}/main.log 2>&1
|
if $SYSTEMD_SUPPORTED ; then
|
||||||
else
|
echo "systemctl start apache2" >> ${_logdir}/main.log
|
||||||
echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log
|
systemctl start apache2 >> ${_logdir}/main.log 2>&1
|
||||||
/etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1
|
else
|
||||||
fi
|
echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log
|
||||||
if [ "$?" = "0" ]; then
|
/etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1
|
||||||
echo_ok
|
fi
|
||||||
else
|
if [ "$?" = "0" ]; then
|
||||||
echo_failed
|
echo_ok
|
||||||
warn "Starting Apache Webservice failed!."
|
else
|
||||||
fi
|
echo_failed
|
||||||
|
warn "Starting Apache Webservice failed!."
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user