#!/bin/sh
cd /var/lib/cpm/run
ulimit -c unlimited
while true; do
  # load any server arguments
  [ -r /etc/cpm/config ] && source /etc/cpm/config
  SERVERARGS="${SERVERARGS:--v 0}"
  # run the server
  /usr/bin/CSserver.bin ${SERVERARGS}
  # wait a little before restarting it
  sleep 30
done
