Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

линукс учебник

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Squid


  • Subject: Re: lug-bg: Squid
  • From: root@xxxxxxxxxxxxxx (root)
  • Date: Wed, 31 Mar 1999 18:36:00 +0300 (EEST)



On Mon, 29 Mar 1999, Pavel Milev wrote:

> Hello Lug_bg,
> 
>   Imam si Squid-2.1.PATCH2.
>   Iskam squid-a da se puska ot niakoi fail v rc.d
>   V UserGuide-a pisheshe : instaliraite go v /usr/local/squid,
>   napravete user squid ot grupa squid s home-dir /usr/local/squid,
>   i si pusnete squid-cheto. Dotuk dobre, daje varvi ... Obache nikoi
>   drug user ,dori i root, ne e v sastoianie da pusne prokletata
>   gadinka. Imam si vsichki patishta premissions i t.n.
> 
>   Kak da go podkaram ?
> 
> Best regards,
>  Pavel                          mailto:milev_@xxxxxx
> 
> 
> ==================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
> ==================================================================
> 
ako si sus Slackware :
mojesh v rc.inet2 da dobavish :
----------cut here--------------
# Start the http caching service
if [ -f /usr/local/squid/bin/squid ]; then
  echo -n " Squid"
  /usr/local/squid/bin/squid &
else
  echo "no Squid found.  HTTP caching Not Available!"
fi
------------cut here----------
ako si sus RH zapish v /etc/rc.d/init.d/ s ime squid slednoto:

#!/bin/bash
# squid         This shell script takes care of starting and stopping
#               Squid Internet Object Cache
#
# chkconfig: - 90 25
# description: Squid - Internet Object Cache. Internet object caching is \
#       a way to store requested Internet objects (i.e., data available \
#       via the HTTP, FTP, and gopher protocols) on a system closer to the
\
#       requesting site than to the source. Web browsers can then use the
\
#       local Squid cache as a proxy HTTP server, reducing access time as
\
#       well as bandwidth consumption.
# pidfile: /var/run/squid.pid
# config: /etc/squid.conf

PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# check if the squid conf file is present
[ -f /etc/squid.conf ] || exit 0

# determine the name of the squid binary
[ -f /usr/sbin/squid ] && SQUID=squid
[ -f /usr/sbin/squid.novm ] && SQUID=squid.novm
[ -z "$SQUID" ] && exit 0

# determine which one is the cache_swap directory
CACHE_SWAP=`sed -e 's/#.*//g' /etc/squid.conf | \
        grep cache_dir | sed -e 's/cache_dir//' | \
        tr -d '\n'`
[ -z "$CACHE_SWAP" ] && CACHE_SWAP=/var/spool/squid

# default squid options
# -D disables initial dns checks. If you most likely will not to have an
#    internet connection when you start squid, uncomment this
#SQUID_OPTS="-D"

case "$1" in
start)
    echo -n "Starting $SQUID: "
    [ ! -d $CACHE_SWAP/00 ] && \
        echo -n "init_cache_dir $CACHE_SWAP... " && $SQUID -z -F
2>/dev/null
    $SQUID $SQUID_OPTS &
    echo $SQUID
    touch /var/lock/subsys/$SQUID
    ;;

top)
    echo -n "Stopping $SQUID: "
    $SQUID -k shutdown &
    rm -f /var/lock/subsys/$SQUID
    while : ; do
        [ -f /var/run/squid.pid ] || break
        sleep 2 && echo -n "."
    done
    echo "done"
    ;;

restart)
    $SQUID $SQUID_OPTS -k reconfigure
    exit $?
    ;;

tatus)
    status $SQUID
    $SQUID -k check
    exit $?
    ;;

probe)
    exit 0;
    ;;

*)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
esac

exit 0

---------------cut here------------------

==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
==================================================================


  • Относно:
    • lug-bg: Squid
      • Изпратено от: milev_@xxxxxx (Pavel Milev)

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

Silaw.ORG
http://cilaw.org

NetField Forum
http://netField.ludost.net/forum/

 

 

© Copyright 2006 - 2008 Linux-Bulgaria.ORG

Hosted by "Internet Group" Ltd. - Stara Zagora