aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/xds-server-start.sh
blob: 58e1952b245556a10945e6a1bb5bff5fff4a25ba (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

BINDIR=/opt/AGL/bin
[[ -f $BINDIR/xds-server ]] || BINDIR=$(which xds-server)
[[ -f $BINDIR/xds-server ]] || BINDIR=/usr/local/bin    ;# for backward compat
[[ -f $BINDIR/xds-server ]] || { echo "Cannot find xds-server executable !"; exit 1; }

echo "### Start XDS server"
nohup $BINDIR/xds-server $* &
exit $?