#!/bin/sh

[ -r conf ] && . ./conf

exec 2>&1
exec /usr/bin/tailscaled                        \
	--state=/var/lib/tailscale/tailscaled.state \
	--socket=/run/tailscale/tailscaled.sock \
	--port "${PORT:-41641}"                     \
	"$@"
