#/bin/bash

main()
{
	service postgresql start
	export USER=root;
	cd /turbo
	source ./set_env_vars 

	sleep 10 # let postgres start

	cd /tmp
	/turbo/bin/turbod.exe  > /tmp/turbod.log 2>&1 &
	sleep 10 # let turbod start 
	/turbo/bin/prepd.exe > /tmp/prepd.log 2>&1 

}

main "$@" 
