Commit 4baded35 by ale

Force usage of the Go native resolver at runtime

Useful in case the postfix-onion-transport binary was not built with
-tags netgo for some reason.
1 parent 954d8114
Pipeline #208 passed
in 10 seconds
......@@ -48,7 +48,8 @@ do_start()
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
# 2 if daemon could not be started
export GODEBUG=netdns=go
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --chuid $USER --exec $DAEMON -- \
......
......@@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Environment=ADDR=localhost:6013
Environment=GODEBUG=netdns=go
EnvironmentFile=-/etc/default/postfix-onion-transport
User=postfix-onion-transport
ExecStart=/usr/sbin/postfix-onion-transport --addr $ADDR $DAEMON_ARGS
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!