def get_listening_ports(process_name="<STR_LIT>"):
ports = set()<EOL>for _, address_info in gurumate.base.get_listening_ports(process_name):<EOL><INDENT>ports.add(address_info[<NUM_LIT:1>])<EOL><DEDENT>return list(ports)<EOL>
returns a list of listening ports for running process (default=apache2)