#!/bin/sh
#-----------------------------------------------------------------------
# This script that will start synth_server.bin so that an
# Synthesizer object will be provided to the outside world.
#-----------------------------------------------------------------------

# if test -z "$REALTIME"; then
	# Try to init a realtime process with the rt package, which
	# allows to run programs realtime as conventional user
	#
	# if test -f /usr/sbin/rt; then
	#	echo "Using /usr/sbin/rt to adjust priority to realtime level"
	#	echo ""
	#	read
	#	REALTIME=yes /usr/sbin/rt -f -p 40 $0
	#	READY=yes
	# fi
	#
	# Since rt is setuid root, and does *NOT* drop its privileges after
	# being started, I would not recommend to install it anyway, since
	# every user on your system can get root rights then, whenever he/she
	# wants to!!
# fi

if test -z "$READY"; then
	echo "--- initializing KSynth Synthesizer object ---"
	synth_server.bin -ORBIIOPAddr inet:localhost:8888
	echo "---------------- terminated. -----------------"
fi
