Skip to content

Instantly share code, notes, and snippets.

@ranaldmiao
Last active January 17, 2020 08:51
Show Gist options
  • Save ranaldmiao/56ed5747e6a51b44b2137fc2c5f3fe69 to your computer and use it in GitHub Desktop.
Save ranaldmiao/56ed5747e6a51b44b2137fc2c5f3fe69 to your computer and use it in GitHub Desktop.
Script to start CMS
#!/bin/sh
START_CONTEST=ALL
START_RANKING=true # false to not start RankingWebServer, true to start
# Start cmsLogService
echo "Starting cmsLogService"
nohup cmsLogService > cms.log 2>&1 &
# Start cmsRankingServer
if [ "$START_RANKING" = true ]; then
echo "Starting cmsRankingWebServer"
nohup cmsRankingWebServer > cmsRankingWebServer.log 2>&1 &
fi
echo "Starting cmsResourceService -a $START_CONTEST"
nohup cmsResourceService -a "$START_CONTEST" > cmsResourceService.og 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment