1 Star 0 Fork 2

JenkinH/haipproxy

forked from Ekber/haipproxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
squid_update.py 580 Bytes
一键复制 编辑 原始数据 按行查看 历史
"""
This module is used to update squid conf periodically.
If you belong to admin group, you can start the task using the following cmd:
python squid_update.py
The default usage value is 'https' and interval value is 5 minutes,
use the following cmd if you want a different usage and updating interval
sudo python squid_update.py --usage weibo --interval 6
Notice that if you don't belong to admin group, you must run this script with sudo:
sudo python squid_update.py
"""
from haipproxy.scheduler import squid_conf_update
if __name__ == '__main__':
squid_conf_update()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jenkinh/haipproxy.git
git@gitee.com:jenkinh/haipproxy.git
jenkinh
haipproxy
haipproxy
master

搜索帮助