mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 16:31:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			481 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			481 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/sbin/openrc-run
 | |
| 
 | |
| supervisor=supervise-daemon
 | |
| 
 | |
| name="gortr"
 | |
| description="The RPKI-to-Router server used at Cloudflare"
 | |
| 
 | |
| command="/usr/bin/$RC_SVCNAME"
 | |
| command_args="$GORTR_OPTS"
 | |
| command_user="$RC_SVCNAME:$RC_SVCNAME"
 | |
| 
 | |
| extra_started_commands="reload"
 | |
| description_reload="Reload configuration"
 | |
| 
 | |
| error_log="/var/log/$RC_SVCNAME.log"
 | |
| 
 | |
| depend() {
 | |
| 	need net
 | |
| 	after firewall
 | |
| }
 | |
| 
 | |
| reload() {
 | |
| 	ebegin "Reloading $RC_SVCNAME configuration"
 | |
| 	$supervisor "$RC_SVCNAME" --signal HUP
 | |
| 	eend $?
 | |
| }
 |