File size: 449 Bytes
bad179a
 
 
 
 
 
1
2
3
4
5
6
7
#!/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"