1 2 3
#!/bin/sh sudo -u tor cat /var/lib/tor/hidden_service/hostname || echo "no hidden service configured"