ntpmon.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:ntpmon 作者: paulgear 项目源码 文件源码
def start_ntpmon():
    """
    Start the ntpmon daemon process.
    If ntp is not installed, do nothing.
    """
    if os.path.exists(ntp_conf):
        hookenv.log(ntp_conf + ' present; enabling and starting ntpmon')
        host.service_resume(service_name)
    else:
        hookenv.log(ntp_conf + ' not present; disabling ntpmon')
        host.service_pause(service_name)
    set_state('ntpmon.started')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号