Create service to ensure that duplicate entries are not added.
Use the provided constants to determine whether to re create the socket.