- 论坛徽章:
- 0
|
OS:AS4
squid2.5-14
./configure 加了--enable-kill-parent-hack参数(当然还有其它的)
编译安装到/usr/local/squid之后,squid 本身启动,停止,还有使用都正常
当我在/etc/squid/squid.conf文件中加入redirect_program ……(具体的程序名字就不写了)
问题是,当我用/usr/local/squid/sbin/squid -D 启动的时候,redirect_program 指向的程序能正常启动起来;
但是当我/usr/local/squid/sbin/squid -k shutdown 的时候,30秒后squid是正常关闭了,但是redirect_program指向的程序还是在进程里可以看见,不能自动停止,不知道怎么回事?请教高手……?
不知到这么说能不能说明白,,,附上cache.log
2008/11/06 17:04:24| Starting Squid Cache version 2.5.STABLE14 for i686-pc-linux-gnu...
2008/11/06 17:04:24| Process ID 5703
2008/11/06 17:04:24| With 32768 file descriptors available
2008/11/06 17:04:24| helperOpenServers: Starting 10 'dnsserver' processes
2008/11/06 17:04:24| helperOpenServers: Starting 50 '*********' processes [redirect_program 指向的程序正常启动]2008/11/06 17:04:24| Unlinkd pipe opened on FD 24
2008/11/06 17:04:24| Swap maxSize 10240000 KB, estimated 787692 objects
2008/11/06 17:04:24| Target number of buckets: 39384
2008/11/06 17:04:24| Using 65536 Store buckets
2008/11/06 17:04:24| Max Mem size: 131072 KB
2008/11/06 17:04:24| Max Swap size: 10240000 KB
2008/11/06 17:04:24| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/11/06 17:04:24| Store logging disabled
2008/11/06 17:04:24| Rebuilding storage in /cache (DIRTY)
2008/11/06 17:04:24| Using Least Load store dir selection
2008/11/06 17:04:24| Current Directory is /
2008/11/06 17:04:24| Loaded Icons.
2008/11/06 17:04:24| Accepting HTTP connections at 0.0.0.0, port 3128, FD 27.
2008/11/06 17:04:24| WCCP Disabled.
2008/11/06 17:04:24| Pinger socket opened on FD 29
2008/11/06 17:04:24| Ready to serve requests.
2008/11/06 17:04:24| Done reading /cache swaplog (0 entries)
2008/11/06 17:04:24| Finished rebuilding storage from disk.
2008/11/06 17:04:24| 0 Entries scanned
2008/11/06 17:04:24| 0 Invalid entries.
2008/11/06 17:04:24| 0 With invalid flags.
2008/11/06 17:04:24| 0 Objects loaded.
2008/11/06 17:04:24| 0 Objects expired.
2008/11/06 17:04:24| 0 Objects cancelled.
2008/11/06 17:04:24| 0 Duplicate URLs purged.
2008/11/06 17:04:24| 0 Swapfile clashes avoided.
2008/11/06 17:04:24| Took 0.3 seconds ( 0.0 objects/sec).
2008/11/06 17:04:24| Beginning Validation Procedure
2008/11/06 17:04:24| Completed Validation Procedure
2008/11/06 17:04:24| Validated 0 Entries
2008/11/06 17:04:24| store_swap_size = 0k
2008/11/06 17:04:25| storeLateRelease: released 0 objects
2008/11/06 17:05:43| Killing RunCache, pid 5701 [shutdown的时候这两句不知道是不是有问题,求解?]
2008/11/06 17:05:43| kill 5701: (1) Operation not permitted
2008/11/06 17:05:45| Preparing for shutdown after 0 requests
2008/11/06 17:05:45| Waiting 30 seconds for active connections to finish
2008/11/06 17:05:45| FD 27 Closing HTTP connection
2008/11/06 17:05:45| Closing Pinger socket on FD 29
2008/11/06 17:06:16| Shutting down...
2008/11/06 17:06:16| Closing unlinkd pipe on FD 24
2008/11/06 17:06:16| aioSync: flushing pending I/O operations
2008/11/06 17:06:16| aioSync: done
2008/11/06 17:06:16| storeDirWriteCleanLogs: Starting...
2008/11/06 17:06:17| Finished. Wrote 0 entries.
2008/11/06 17:06:17| Took 0.0 seconds ( 0.0 entries/sec).
CPU Usage: 0.040 seconds = 0.013 user + 0.027 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 1984 KB
Ordinary blocks: 1912 KB 2 blks
Small blocks: 0 KB 5 blks
Holding blocks: 6920 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 71 KB
Total in use: 8832 KB 445%
Total free: 71 KB 4%
2008/11/06 17:06:17| aioSync: flushing pending I/O operations
2008/11/06 17:06:17| aioSync: done
2008/11/06 17:06:17| aioSync: flushing pending I/O operations
2008/11/06 17:06:17| aioSync: done
2008/11/06 17:06:17| Squid Cache (Version 2.5.STABLE14): Exiting normally. |
|