summaryrefslogtreecommitdiff
path: root/rapid-tunneling
diff options
context:
space:
mode:
authorAlex Landau <alex.landau@xorcom.com>2008-12-08 10:54:46 +0000
committerAlex Landau <alex.landau@xorcom.com>2008-12-08 10:54:46 +0000
commit9489a7eeeae753b144db0382423c432c0b4f960e (patch)
tree93a4a3768d471527af1a2bb1d23746e336a89441 /rapid-tunneling
parent817f3069a8eb684675d266d4b95aa0bb1a4de9ff (diff)
rapid-tunneling:
- Added status checker. - Tunnel is backgrounded with start-stop-daemon. git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6438 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'rapid-tunneling')
-rwxr-xr-xrapid-tunneling2
1 files changed, 1 insertions, 1 deletions
diff --git a/rapid-tunneling b/rapid-tunneling
index 97bf167..92bd7c7 100755
--- a/rapid-tunneling
+++ b/rapid-tunneling
@@ -27,4 +27,4 @@ rm -rf $tmpdir
# Remove host key of $host (in case it has changed)
ssh-keygen -R $host
# Run in background
-setsid ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $HOME/key -R $tunnelport:127.0.0.1:22 -l $user $host < $HOME/ra-params.tar.gz
+busybox start-stop-daemon -S -b -m -p $HOME/pid -x /bin/sh -- -c "exec ssh -o 'StrictHostKeyChecking no' -o 'BatchMode yes' -o 'ServerAliveInterval 60' -T -p $port -i $HOME/key -R $tunnelport:127.0.0.1:22 -l $user $host < $HOME/ra-params.tar.gz"