void-packages/srcpkgs/tailscale/files/tailscaled/run

11 lines
275 B
Bash

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