aports/testing/tailscale/tailscale.initd
Robert Günzler d74548dcf5 testing/tailscale: new aport
https://tailscale.com
The easiest, most secure way to use WireGuard and 2FA

Co-authored-by: Christine Dodrill <xe@tailscale.com>
2021-03-09 18:30:19 +00:00

28 lines
603 B
Plaintext

#!/sbin/openrc-run
TAILSCALED_LOGFILE="${TAILSCALED_LOGFILE:-/var/log/${RC_SVCNAME}d.log}"
TAILSCALED_PORT="${TAILSCALED_PORT:-41641}"
supervisor=supervise-daemon
name="tailscaled"
command="/usr/sbin/tailscaled"
command_args="--state=/var/lib/tailscale/tailscaled.state --port ${TAILSCALED_PORT} ${TAILSCALED_OPTS} >>${TAILSCALED_LOGFILE} 2>&1"
output_log=${TAILSCALED_LOGFILE}
error_log=${TAILSCALED_LOGFILE}
pidfile="/run/tailscaled.pid"
respawn_delay=5
respawn_max=0
depend() {
need net
after firewall
use logger
}
start_pre() {
checkpath -f -m 0644 -o root:root "${TAILSCALED_LOGFILE}"
}