uname -a
Код: Выделить всё
FreeBSD squidi 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Код: Выделить всё
Squid Cache: Version 3.0.STABLE14
configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic digest negotiate ntlm' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB squid_radius_auth YP' '--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=SMB' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-storeio=ufs diskd null' '--enable-kqueue' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish Dutch English Estonian Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Lithuanian Polish Portuguese Romanian Russian-1251 Russian-koi8-r Serbian Simplify_Chinese Slovak Spanish Swedish Traditional_Chinese Turkish Ukrainian-1251 Ukrainian-koi8-u Ukrainian-utf8' '--enable-default-err-language=templates' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd7.2' 'build_alias=amd64-portbld-freebsd7.2' 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe' 'LDFLAGS=' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -fno-strict-aliasing -pipe'
Код: Выделить всё
hostname="squidi"
squid_enable="YES"
Если в ручную стартоват или остановить с помощю инит скрипта, то все норма.
Если в ручную статовать через инит скрипт (/usr/local/etc/rc.d/squid) потом сделать перезагрузку системы, то сквид не стартует.
Вот что в логах после перезагрузки
/var/log/messages
Код: Выделить всё
Sep 12 18:22:05 squidi squid[636]: Squid Parent: child process 638 started
Sep 12 18:22:05 squidi squid[638]: Squid is already running! Process ID 636
Sep 12 18:22:05 squidi squid[636]: Squid Parent: child process 638 exited with status 0
Код: Выделить всё
638
если в ручную удалить pid файл и перезагрузится то нормал стартует.
после нормального старта вот что в логах
Код: Выделить всё
2009/09/12 19:35:50| Starting Squid Cache version 3.0.STABLE14 for amd64-portbld-freebsd7.2...
2009/09/12 19:35:50| Process ID 636
2009/09/12 19:35:50| With 11095 file descriptors available
2009/09/12 19:35:50| DNS Socket created at 0.0.0.0, port 60287, FD 7
2009/09/12 19:35:50| Adding nameserver 208.67.222.222 from /etc/resolv.conf
2009/09/12 19:35:50| Unlinkd pipe opened on FD 12
2009/09/12 19:35:50| Swap maxSize 102400 KB, estimated 7876 objects
2009/09/12 19:35:50| Target number of buckets: 393
2009/09/12 19:35:50| Using 8192 Store buckets
2009/09/12 19:35:50| Max Mem size: 8192 KB
2009/09/12 19:35:50| Max Swap size: 102400 KB
2009/09/12 19:35:50| Version 1 of swap file without LFS support detected...
2009/09/12 19:35:50| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2009/09/12 19:35:50| Using Least Load store dir selection
2009/09/12 19:35:50| Set Current Directory to /usr/local/squid/cache
2009/09/12 19:35:51| Loaded Icons.
2009/09/12 19:35:51| Accepting transparently proxied HTTP connections at 192.168.68.33, port 3128, FD 14.
2009/09/12 19:35:51| Accepting ICP messages at 0.0.0.0, port 3130, FD 15.
2009/09/12 19:35:51| HTCP Disabled.
2009/09/12 19:35:51| Ready to serve requests.
2009/09/12 19:35:51| Done reading /usr/local/squid/cache swaplog (0 entries)
2009/09/12 19:35:51| Finished rebuilding storage from disk.
2009/09/12 19:35:51| 0 Entries scanned
2009/09/12 19:35:51| 0 Invalid entries.
2009/09/12 19:35:51| 0 With invalid flags.
2009/09/12 19:35:51| 0 Objects loaded.
2009/09/12 19:35:51| 0 Objects expired.
2009/09/12 19:35:51| 0 Objects cancelled.
2009/09/12 19:35:51| 0 Duplicate URLs purged.
2009/09/12 19:35:51| 0 Swapfile clashes avoided.
2009/09/12 19:35:51| Took 0.59 seconds ( 0.00 objects/sec).
2009/09/12 19:35:51| Beginning Validation Procedure
2009/09/12 19:35:51| Completed Validation Procedure
2009/09/12 19:35:51| Validated 25 Entries
2009/09/12 19:35:51| store_swap_size = 0
2009/09/12 19:35:51| storeLateRelease: released 0 objects