All pastes #338322 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-03 10:29 UTC
rendered paste body
# 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