14 lines
		
	
	
		
			374 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			374 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/bash
 | |
| 
 | |
| [[ $PROXY_USER ]] || PROXY_USER='proxy'
 | |
| [[ $PROXY_HOST ]] || PROXY_HOST='malganis.priv'
 | |
| 
 | |
| service_respawn=true
 | |
| service_command=( /usr/bin/ssh -i ~/.ssh/proxy/id_ecdsa -ND 8080 "$PROXY_USER@$PROXY_HOST" )
 | |
| 
 | |
| function info {
 | |
| 	printf 'Name: %s\n' "$service_name"
 | |
| 	printf 'Command: %s\n' "${service_command[*]}"
 | |
| 	(( service_respawn )) && printf 'Respawn: yes\n'
 | |
| }
 |