Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2018-08-07 22:21:49 +03:00
parent c2ce8525ab
commit 22eac4d45f
16 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/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'
}