免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2585 | 回复: 1
打印 上一主题 下一主题

[proxy] 停止squid的时候无法连带停止redirect_program指向的程序 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-06 17:30 |只看该作者 |倒序浏览
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.

论坛徽章:
0
2 [报告]
发表于 2008-11-10 16:21 |只看该作者
真不好意思,问题解决了。
原来是参数设置错误,跟squid没有关系
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP