diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index a94a157f4..563846f80 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -1064,7 +1064,7 @@ main( int argc, char** argv ) int nWorkerThreads = 0; char* conffile = NULL; const char* serverName = NULL; - const char* idFileName = NULL; + // const char* idFileName = NULL; const char* logFile = NULL; bool doDaemon = true; bool doFork = true; @@ -1079,7 +1079,7 @@ main( int argc, char** argv ) first. */ for ( ; ; ) { - int opt = getopt(argc, argv, "h?c:p:n:i:f:l:t:s:w:" + int opt = getopt(argc, argv, "h?c:p:n:f:l:t:s:w:" "DF" ); if ( opt == -1 ) { @@ -1115,9 +1115,9 @@ main( int argc, char** argv ) case 'f': conffile = optarg; break; - case 'i': - idFileName = optarg; - break; + // case 'i': + // idFileName = optarg; + // break; case 'l': logFile = optarg; break; diff --git a/xwords4/relay/xwrelay.sh b/xwords4/relay/xwrelay.sh index 01e8d2df3..d8b729a31 100755 --- a/xwords4/relay/xwrelay.sh +++ b/xwords4/relay/xwrelay.sh @@ -86,7 +86,7 @@ do_start() { fi echo "starting..." | tee -a $LOGFILE echo "running $XWRELAY $@ -f $CONFFILE -s $CSSFILE" | tee -a $LOGFILE - $XWRELAY $@ -f $CONFFILE -i $IDFILE -s $CSSFILE & + $XWRELAY $@ -f $CONFFILE -s $CSSFILE & NEWPID=$! echo -n $NEWPID > $PIDFILE sleep 1