示例#1
0
def is_sftp_running():
    """
    Simple wrapper around system.services.service_status()
    to return a boolean for the SFTP service status
    :return: True if running, False otherwise/
    """
    _, _, sftp_rc = service_status("sftp")
    if sftp_rc == 0:
        return True
    else:
        return False
示例#2
0
def status():
    return service_status("smb")
示例#3
0
def status():
    return service_status("smb")
示例#4
0
def status():
    return service_status('smb')
示例#5
0
def status():
    return service_status('shellinaboxd')