mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	An open source, self-hosted implementation of the Tailscale control server https://github.com/juanfont/headscale
		
			
				
	
	
		
			26 lines
		
	
	
		
			642 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			26 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
 | |
| }
 |