]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Put actual OpenVPN command line on top of corresponding log file.
authorGert Doering <gert@greenie.muc.de>
Thu, 16 Aug 2012 18:31:22 +0000 (20:31 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sun, 2 Sep 2012 18:27:49 +0000 (20:27 +0200)
This is useful if a test fails, and the tester wants to run the very
same OpenVPN call with the very same arguments interactively to
pinpoint and fix the problem.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1345141883-9889-2-git-send-email-gert@greenie.muc.de
URL: http://article.gmane.org/gmane.network.openvpn.devel/6984
Signed-off-by: David Sommerseth <davids@redhat.com>
tests/t_client.sh.in

index 8c66033fd7f057c343b5e0bc11e88e37feed021f..189eeccee5f35079323400afae6af28f3174298d 100755 (executable)
@@ -234,7 +234,8 @@ do
     fi
 
     echo " run openvpn $openvpn_conf"
-    $RUN_SUDO "${top_builddir}/src/openvpn/openvpn" $openvpn_conf >$LOGDIR/$SUF:openvpn.log &
+    echo "# src/openvpn/openvpn $openvpn_conf" >$LOGDIR/$SUF:openvpn.log
+    $RUN_SUDO "${top_builddir}/src/openvpn/openvpn" $openvpn_conf >>$LOGDIR/$SUF:openvpn.log &
     opid=$!
 
     # make sure openvpn client is terminated in case shell exits