Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2018-08-07 22:31:39 +03:00
parent 22eac4d45f
commit 7e99d071c0
17 changed files with 33 additions and 30 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'
}