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 閱讀(239) 評論(0)  編輯  收藏 所屬分類: 每日一記My Script

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 广西| 阜康市| 青冈县| 股票| 肃南| 加查县| 驻马店市| 明溪县| 岗巴县| 长垣县| 裕民县| 大连市| 米泉市| 额尔古纳市| 泽普县| 东乌珠穆沁旗| 景宁| 敖汉旗| 繁昌县| 商河县| 荥阳市| 蒲江县| 揭东县| 郴州市| 木兰县| 偏关县| 苗栗县| 龙川县| 榆树市| 沧源| 桃江县| 潞城市| 天峨县| 东丰县| 南部县| 大兴区| 大丰市| 永善县| 苗栗市| 神池县| 江山市|