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

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

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 大竹县| 明光市| 酒泉市| 墨竹工卡县| 荔波县| 巢湖市| 卓资县| 饶平县| 南陵县| 洛宁县| 阿拉善右旗| 忻城县| 江津市| 太谷县| 巨野县| 简阳市| 汉沽区| 厦门市| 仙桃市| 剑川县| 察隅县| 祁连县| 昌黎县| 边坝县| 江川县| 崇州市| 崇阳县| 克东县| 图木舒克市| 财经| 嘉黎县| 建湖县| 酒泉市| 长葛市| 尚义县| 仙游县| 都昌县| 泾源县| 南康市| 成都市| 中江县|