# /etc/xinetd.d/gopher_onion
# The Tor-side entry point. Tor's HiddenServicePort forwards onion :70 here, and
# this runs the link-rewriting shim. Clearnet does NOT use xinetd -- it hits
# Venusia on :70 directly. Reload with:
#   sudo systemctl restart xinetd
service gopher_onion
{
    type           = UNLISTED
    port           = 7072
    bind           = 127.0.0.1

    socket_type    = stream
    protocol       = tcp
    wait           = no
    user           = root

    server         = /bin/bash
    server_args    = /usr/local/bin/gopher_router.sh

    disable        = no
}
