warden/root/linux/skeleton/start.sh
#!/bin/bash
[ -n "$DEBUG" ] && set -o xtrace
set -o nounset
set -o errexit
shopt -s nullglob
cd $(dirname $0)
source ./etc/config
if [ -f ./run/wshd.pid ]
then
echo "wshd is already running..."
exit 1
fi
./net.sh setup
./bin/wshd --run ./run --lib ./lib --root ./mnt --title "wshd: $id" \
1> ./run/wshd.out.log \
2> ./run/wshd.err.log