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
def status(): return service_status("smb")
def status(): return service_status('smb')
def status(): return service_status('shellinaboxd')