3 Star 3 Fork 3

resolvewang/haipproxy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
squid_update.py 570 Bytes
一键复制 编辑 原始数据 按行查看 历史
cisolarix 提交于 2018-04-08 19:39 . FIX: 其他
"""
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 scheduler import squid_conf_update
if __name__ == '__main__':
squid_conf_update()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/resolvewang/haipproxy.git
git@gitee.com:resolvewang/haipproxy.git
resolvewang
haipproxy
haipproxy
master

搜索帮助

Cb406eda 1850385 E526c682 1850385