initial
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_squid@6309 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
3f7dbd341e
24
etc/init/squid.conf
Normal file
24
etc/init/squid.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
description "Squid Proxy"
|
||||||
|
author "Michael Freitag <Michael.Freitag@freitag-it.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on (runlevel [2345] and (started ifup))
|
||||||
|
stop on runlevel [016]
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
expect fork
|
||||||
|
|
||||||
|
pre-start script
|
||||||
|
CACHE_DIR=`awk '/^#/ { next; } /cache_dir/ { print $3; };' /etc/squid/squid.conf`
|
||||||
|
if [ "x${CACHE_DIR}x" != "xx" ]; then
|
||||||
|
/opt/squid/sbin/squid -z
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
|
post-stop script
|
||||||
|
kill `pidof \(squid\)`
|
||||||
|
end script
|
||||||
|
|
||||||
|
exec /opt/squid/sbin/squid
|
Loading…
Reference in New Issue
Block a user