ServerMonitor / dev /tests /web /start.sh
mchuca's picture
Server Monitor: six editions (C++/Qt, Python, web for Linux and Windows), requirements and developer kit
bad179a
Raw History Blame Contribute Delete
449 Bytes
#!/bin/sh
# start.sh <L|W> <cfgdir> <port>: starts an edition in the background with a scratch config; pid in <cfgdir>.pid
T=$HOME/.local/share/sm-dev/tmp/review-web
if [ "$1" = W ]; then P="$HOME/Desktop/Server Monitor(web-window)"; PATH="$HOME/.local/share/sm-dev/fakewin:$PATH"; else P="$HOME/Desktop/Server Monitor(web-linux)"; fi
XDG_CONFIG_HOME="$2" APPDATA="$2" PORT="$3" nohup node "$P/server.js" > "$2.out" 2> "$2.err" &
echo $! > "$2.pid"