mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 16:02:59 +02:00
Fixed squid init warning, now skipping start if running
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
opt/pakfire/db/core/mine
|
||||
etc/init.d/mISDN
|
||||
etc/init.d/squid
|
||||
etc/ppp/ip-up
|
||||
etc/modprobe.d/blacklist
|
||||
usr/bin/bc
|
||||
|
||||
@@ -47,6 +47,14 @@ transparent() {
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
getpids "squid"
|
||||
|
||||
if [ -n "${pidlist}" ]; then
|
||||
echo -e "Squid is already running with Process"\
|
||||
"ID(s) ${pidlist}.${NORMAL}"
|
||||
evaluate_retval
|
||||
exit
|
||||
fi
|
||||
if [ -e /var/ipfire/proxy/enable -o -e /var/ipfire/proxy/enable_blue ]; then
|
||||
boot_mesg "Starting Squid Proxy Server..."
|
||||
loadproc /usr/sbin/squid -D -z >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user