Example #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
Example #2
0
def status():
    return service_status("smb")
Example #3
0
def status():
    return service_status("smb")
Example #4
0
def status():
    return service_status('smb')
Example #5
0
def status():
    return service_status('shellinaboxd')