diff options
-rwxr-xr-x | scripts/xds-start-server.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/xds-start-server.sh b/scripts/xds-start-server.sh index 5a3cba7..6888473 100755 --- a/scripts/xds-start-server.sh +++ b/scripts/xds-start-server.sh @@ -41,10 +41,16 @@ pid_sync=$(jobs -p) echo "pid=${pid_sync}" echo "" -sleep 1 - -echo "### Start XDS server" -$BINDIR/xds-server --config $XDS_CONFFILE -log $LOGLEVEL > $LOG_XDS 2>&1 & -pid_xds=$(jobs -p) -echo "pid=${pid_xds}" +if [ "$1" == "-noserver" ]; then + echo "## XDS server NOT STARTED" + echo " Command to start it:" + echo " $BINDIR/xds-server --config $XDS_CONFFILE -log $LOGLEVEL > $LOG_XDS 2>&1" +else + # Wait a bit so make connection to Syncthing possible + sleep 1 + echo "### Start XDS server" + $BINDIR/xds-server --config $XDS_CONFFILE -log $LOGLEVEL > $LOG_XDS 2>&1 & + pid_xds=$(jobs -p) + echo "pid=${pid_xds}" +fi echo "" |