Snippets: Netbird runit script setup for Void Linux
Just going to throw some stuff online for my own recollection, since I keep needing to create these files:
Void Linux Netbird init script for runit on Void Linux:
Basic setup and init script:
mkdir -p /etc/sv/netbird
cat <<END >/etc/sv/netbird/run
#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
exec /usr/bin/netbird service run –config /etc/netbird/config.json –log-level info –daemon-addr unix:///var/run/netbird.sock –log-file /var/log/netbird/client.log
END
And of course for post-install:
chmod +x /etc/sv/netbird/run
ln -sf /etc/sv/netbird /var/service/netbird
I’ve not yet better integrated this into logging, but will edit this post if I do so.…