ALT Linux repositórios
S: | 2.4.57-alt2 |
D: | 2.2.9-alt11 |
5.0: | 2.2.24-alt2.M50.1 |
4.1: | 2.2.8-alt1 |
4.0: | 2.2.6-alt4 |
+updates: | 2.2.6-alt2 |
3.0: | 2.0.55-alt1 |
+backports: | 2.0.59-alt0.M30.1 |
Outros repositórios
Upstream: | 2.2.8 |
Group :: Sistema/Servidores
RPM: apache2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#!/bin/sh
# run htcacheclean for start daemon
set -e
set -u
HTCACHECLEAN=%apache2_sbindir/%apache2_htcacheclean_dname
HTCACHECLEAN_CONF=%_sysconfdir/sysconfig/%apache2_htcacheclean_dname
if [ ! -e $HTCACHECLEAN ]; then
echo "No file $HTCACHECLEAN"
exit 2
fi
# edit %_sysconfdir/sysconfig/%apache2_htcacheclean_dname to change this
HTCACHECLEAN_MODE=daemon
HTCACHECLEAN_RUN=auto
if [ -e $HTCACHECLEAN_CONF ]; then
. $HTCACHECLEAN_CONF
fi
if [ "$HTCACHECLEAN_MODE" != "daemon" ]; then
echo "No set daemon mode for htcacheclean"
exit 3
fi
if [ "$HTCACHECLEAN_RUN" != "yes" ]; then
if [ "$HTCACHECLEAN_RUN" = "no" ]; then
echo "Sets HTCACHECLEAN_RUN=no"
exit 4
elif [ "$HTCACHECLEAN_RUN" = "auto" ] && \
( [ ! -e /etc/httpd2/conf/mods-enabled/disk_cache.load ] && \
[ ! -e /etc/httpd2/conf/mods-enabled/proxy.load ] ); then
echo "No load disk_cache or proxy module in httpd2 daemon"
exit 5
fi
fi
exec $HTCACHECLEAN "$@"