Untitled
public text v1 · immutable# in case screen is installed on the system we start MS apps in screen
# sessions for being able to attach and debug using their console output
SCREEN_CMD=`which screen`
if [ $SCREEN_CMD ] ; then
echo 'screen application installed, will start MS apps in screen sessions'
SCREEN_CMD="$SCREEN_CMD -d -m"
fi
if [ "$SCREEN_CMD" ] ; then
# start LS in screen session
$SCREEN_CMD -S linuxsampler linuxsampler
else
# start LS as usual
linuxsampler &
fi