diff --git a/net-vpn/tailscale/files/tailscale.tmpfiles b/net-vpn/tailscale/files/tailscale.tmpfiles new file mode 100644 index 0000000..f27c778 --- /dev/null +++ b/net-vpn/tailscale/files/tailscale.tmpfiles @@ -0,0 +1,2 @@ +#type path mode user group age argument +d /run/tailscale 0755 - - - - diff --git a/net-vpn/tailscale/files/tailscaled.confd b/net-vpn/tailscale/files/tailscaled.confd new file mode 100644 index 0000000..d65c429 --- /dev/null +++ b/net-vpn/tailscale/files/tailscaled.confd @@ -0,0 +1,6 @@ +# /etc/conf.d/tailscaled +# the port for tailscaled to listen on +#tailscaled_port=41641 + +# extra arguments passed to the daemon +#tailscaled_args="" diff --git a/net-vpn/tailscale/files/tailscaled.initd b/net-vpn/tailscale/files/tailscaled.initd new file mode 100644 index 0000000..c7edf4a --- /dev/null +++ b/net-vpn/tailscale/files/tailscaled.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="tailscaled" +description="Tailscale node agent" +command=/usr/sbin/tailscaled +command_args="--state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port ${tailscaled_port:-41641} ${tailscaled_args}" +supervisor=supervise-daemon + +depend() { + need net + use logger +}