mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			347 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			347 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/sbin/openrc-run
 | |
| 
 | |
| name=$RC_SVCNAME
 | |
| description="sing-box service"
 | |
| supervisor="supervise-daemon"
 | |
| command="/usr/bin/sing-box"
 | |
| command_args="-D /var/lib/sing-box -C /etc/sing-box run"
 | |
| extra_started_commands="reload"
 | |
| 
 | |
| depend() {
 | |
| 	after net dns 
 | |
| }
 | |
| 
 | |
| reload() {
 | |
| 	ebegin "Reloading $RC_SVCNAME"
 | |
|         $supervisor "$RC_SVCNAME" --signal HUP
 | |
| 	eend $?
 | |
| }
 |