Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 481 → Rev 482

/conf/havp-init
1,6 → 1,6
#!/bin/sh
#
# $Id$
#
####
# This init-script tries to be LSB conform but platform independent.
#
12,6 → 12,9
# description: starts HAVP the High Availability Antivirus Proxy
#
 
 
 
 
. /etc/init.d/functions
HAVP_BIN=/usr/sbin/havp
HAVP_CONFIG=/etc/havp/havp.config
26,7 → 29,7
. /etc/sysconfig/havp
fi
 
havp_loopback=/var/lib/havp/havp.loop
havp_loopback=tmpfs
havp_mountpoint=/var/tmp/havp
 
#set -e
67,10 → 70,9
 
case "$1" in
start)
if [ x"$USE_LOOPBACK" = x"true" -a -e $havp_loopback ] && \
! [ "`mount | grep ^$havp_loopback`" ]; then
if [ x"$USE_LOOPBACK" = x"true" ] && ! [ "`mount | grep ^$havp_loopback`" ]; then
echo -n "Mounting $havp_loopback under $havp_mountpoint ..."
mount -o rw,mand,loop,noatime,async $havp_loopback $havp_mountpoint
mount -t tmpfs -o mand,noatime,size=50m,nosuid,noexec $havp_loopback $havp_mountpoint
chown -R havp:havp $havp_mountpoint
echo "done"
fi
107,7 → 109,6
find $havp_mountpoint/ -type f -delete
echo " done"
sleep 2
if [ x"$USE_LOOPBACK" = x"true" ] && [ "`mount | grep ^$havp_loopback`" ]; then
echo -n "Unmounting $havp_mountpoint ..."
umount $havp_mountpoint