加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
squid_update.py 569 Bytes
一键复制 编辑 原始数据 按行查看 历史
resolvewang 提交于 2018-03-02 22:15 . add python client
"""
This module is used to update squid conf periodically.
If you belongs to admin group,you can start the task using the following cmd:
python squid_update.py
The default usage value is 'https' and internal value is 5 minutes,
use the following cmd if you want a different usage and updating internal
sudo python squid_update.py --usage weibo --internal 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()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化