2017-05-03 13:13:50 +00:00
|
|
|
#!/usr/bin/bash
|
2017-05-03 13:10:13 +00:00
|
|
|
|
2017-05-03 13:13:50 +00:00
|
|
|
[[ $PROXY_USER ]] || PROXY_USER='proxy'
|
|
|
|
[[ $PROXY_HOST ]] || PROXY_HOST='malganis.priv'
|
|
|
|
|
|
|
|
service_respawn=true
|
2017-06-13 13:03:45 +00:00
|
|
|
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'
|
|
|
|
}
|