[Assorted-commits] SF.net SVN: assorted:[1776] configs/trunk/src/upstart/rtun.conf
Brought to you by:
yangzhang
From: <yan...@us...> - 2011-04-11 19:15:06
|
Revision: 1776 http://assorted.svn.sourceforge.net/assorted/?rev=1776&view=rev Author: yangzhang Date: 2011-04-11 19:15:00 +0000 (Mon, 11 Apr 2011) Log Message: ----------- Kill any existing rtun before starting Modified Paths: -------------- configs/trunk/src/upstart/rtun.conf Modified: configs/trunk/src/upstart/rtun.conf =================================================================== --- configs/trunk/src/upstart/rtun.conf 2011-04-08 18:44:09 UTC (rev 1775) +++ configs/trunk/src/upstart/rtun.conf 2011-04-11 19:15:00 UTC (rev 1776) @@ -24,6 +24,8 @@ # Upstart seems to squish together all the lines, hence the semicolons exec su yang -c ' while true ; do + pkill -f '^ssh -N -R1122:localhost:22 -i' + sleep 1 ssh -N -R1122:localhost:22 -i /home/yang/.ssh/rtun -o BatchMode=yes -o ServerAliveInterval=300 -o TCPKeepAlive=yes rtun@HOST ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |