Changed files:
apache.init -> 1.55
apache.logrotate -> 1.13
RETVAL=7
fi
;;
+ flush-logs)
+ if [ -f /var/lock/subsys/httpd ]; then
+ msg_reloading httpd.${HTTPD_MPM}
+
+ httpd.${HTTPD_MPM} -t >/dev/null 2>&1
+ RETVAL=$?
+ if [ $RETVAL -eq 0 ]; then
+ daemon httpd.${HTTPD_MPM} $CFG -k graceful
+ RETVAL=$?
+ else
+ fail
+ echo >&2 "Configuration file syntax test failed."
+ fi
+ fi
+ ;;
force-reload)
if [ -f /var/lock/subsys/httpd ]; then
run_cmd "Checking httpd.${HTTPD_MPM} configuration" httpd.${HTTPD_MPM} $CFG -t
olddir /var/log/archiv/httpd
sharedscripts
postrotate
- /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
+ /etc/rc.d/init.d/httpd flush-logs > /dev/null
endscript
}