jojo's blog--快乐忧伤都与你同在
为梦想而来,为自由而生。 性情若水,风起水兴,风息水止,故时而激荡,时又清平……
posts - 11,  comments - 30,  trackbacks - 0
  1. Create directory squid under /service/ to let supervise start Squid automatically
    • Cmd: mkdir -p /service/squid
  2. Create a run file in /service/squid with the following content
    • /service/squid/run
      #!/bin/sh
      if (test `ps -e | grep -c squid` = 0)
      then
      {
      echo "no squid is running, clean up pid file";
      rm -f /usr/local/site/squid/logs/squid.pid
      }
      fi
      exec /usr/local/site/squid/bin/squid -N
  3. Change the permission to 755, so supervise can run it automatically
    Cmd
    chmod 755 /service/squid/run
    • Note: You can verify if a service is started by supervise correctly by typing the following command.
      • Cmd: svstat /service/*
    • Note: Squid cannot start until you fill /usr/local/site/webroot/errordoc/squid/ with corresponding content later.
    • Note: If Squid appears to restart and fail in one second over and over again by itself, check the owner of the folder /usr/local/site/squid/var/cache/ is mdrop:mdrop. And don't forget to create the swap folder for Squid. (Squid -z option)
posted on 2009-07-21 14:45 Blog of JoJo 阅读(229) 评论(0)  编辑  收藏 所属分类: 每日一记My Script

只有注册用户登录后才能发表评论。


网站导航:
 

<2024年12月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(6)

随笔档案

文章分类

文章档案

新闻分类

新闻档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜