Re: tailscale service for runnit or s3 or OpenRC
Reply #4 –
For runit, run the following script to install:
#!/bin/sh
[ "root" != "$USER" ] && exec sudo $0 "$@"
export DIR=/etc/runnit/sv
export FILE=$DIR/run
mkdir -p -- $DIR
tee $FILE << EOF
#!/bin/sh
[ -r /etc/default/tailscaled ] && . /etc/default/tailscaled
/usr/sbin/tailscaled --cleanup
exec /usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state \
--socket=/run/tailscale/tailscaled.sock --port "$PORT" $FLAGS
EOF
chmod +x $FILE
Then doing the usual ln -s, etc... Thanks @capezotte