Re: How do i do a runnit servie file?
Reply #3 –
If that's the case, here's a tentative, untested run file:
#!/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
But we have a problem. It's a type notify service, which means it tells systemd when it's ready using a systemd-specific API. Though my testing suggests it just falls back to not notifying systemd (or the fact that I have elogind tricks it).