1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/headscale/headscale.initd
ptrcnull c625cfabcf testing/headscale: new aport
An open source, self-hosted implementation of the Tailscale control server
https://github.com/juanfont/headscale
2022-03-09 00:37:18 +00:00

25 lines
642 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
command="/usr/bin/headscale"
command_args="serve"
command_user="headscale:headscale"
directory="/var/lib/headscale"
output_log="/var/log/headscale.log"
error_log="/var/log/headscale.log"
depend() {
need net
after firewall
}
start_pre() {
checkpath -d -m 755 -o "headscale:headscale" /var/run/headscale
checkpath -d -m 755 -o "headscale:headscale" /var/lib/headscale
checkpath -f -m 644 -o "headscale:headscale" /var/lib/headscale/db.sqlite
checkpath -f -m 644 -o "headscale:headscale" /etc/headscale/config.yaml
checkpath -f -m 644 -o "headscale:headscale" /var/log/headscale.log
}