|
|
RELOAD_TYPE="${RELOAD_TYPE:-graceful}" | RELOAD_TYPE="${RELOAD_TYPE:-graceful}" |
| |
checkconfig || return 1 | checkconfig || return 1 |
service_started "${myservice}" || return |
service_started "${SVCNAME}" || return |
| |
if [ "${RELOAD_TYPE}" = "restart" ]; then | if [ "${RELOAD_TYPE}" = "restart" ]; then |
ebegin "Restarting apache2" | ebegin "Restarting apache2" |
|
|
| |
graceful() { | graceful() { |
checkconfig || return 1 | checkconfig || return 1 |
service_started "${myservice}" || return |
service_started "${SVCNAME}" || return |
ebegin "Gracefully restarting apache2" | ebegin "Gracefully restarting apache2" |
${APACHE2} ${APACHE2_OPTS} -k graceful | ${APACHE2} ${APACHE2_OPTS} -k graceful |
eend $? | eend $? |
|
|
checkconfig || return 1 | checkconfig || return 1 |
| |
# zap! | # zap! |
if service_started "${myservice}"; then |
if service_started "${SVCNAME}"; then |
mark_service_stopped "${myservice}" |
mark_service_stopped "${SVCNAME}" |
fi | fi |
| |
ebegin "Gracefully stopping apache2" | ebegin "Gracefully stopping apache2" |