Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Аватара для asfium

Новый участник


Сообщения: 10
Благодарности: 0

Профиль | Отправить PM | Цитировать


У мня тот же прикол был
В стартовом скрипте сквида не правильно прописаны директории на log и pid
Выставь права на нужные директории

chown -R squid:squid /var/log/squid
chown -R squid:squid /var/run/squid

Приведи его к такому виду:


#!/bin/sh
#
# $FreeBSD: ports/www/squid30/files/squid.in,v 1.3 2007/06/24 20:28:32 miwi Exp $
#
# PROVIDE: squid
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Note:
# Set "squid_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or
# /etc/rc.conf.d/squid to make this script actually do something. There
# you can also set squid_chdir, squid_pidfile, squid_user, and squid_flags.
#
# Please see squid(8), rc.conf(5) and rc(8) for further details.
#

squid_checkrunning() {
${command} ${squid_flags} -k check 2>/dev/null
}

squid_stop() {
echo "Stopping ${name}."
${command} ${squid_flags} -k shutdown
run_rc_command poll
}

. /etc/rc.subr

name=squid
rcvar=${name}_enable

command=/usr/local/sbin/squid
extra_commands=reload
reload_cmd="${command} ${squid_flags} -k reconfigure"
stop_precmd="squid_checkrunning"
stop_cmd="squid_stop"

load_rc_config ${name}

squid_chdir=${squid_chdir:-"/var/log/squid"}
squid_enable=${squid_enable:-"NO"}
squid_flags=${squid_flags-"-D"}
squid_pidfile=${squid_pidfile:-"/var/run/squid/squid.pid"}
squid_user=${squid_user:-squid}
default_config=/usr/local/etc/squid/squid.conf

pidfile=${squid_pidfile}
required_dirs=${squid_chdir}

# squid(8) will not start if ${default_config} is not present so try
# to catch that beforehand via ${required_files} rather than make
# squid(8) crash.
# If you remove the default configuration file make sure to add
# '-f /path/to/your/squid.conf' to squid_flags

if [ -z "${squid_flags}" ]; then
required_files=${default_config}
fi

run_rc_command "$1"

Отправлено: 13:42, 22-10-2008 | #6