mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 16:41:52 +01:00
https://tailscale.com The easiest, most secure way to use WireGuard and 2FA Co-authored-by: Christine Dodrill <xe@tailscale.com>
28 lines
603 B
Plaintext
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}"
|
|
}
|