On 04/11/2012 12:26 PM, rosea.grammostola wrote:
> On 04/11/2012 12:21 PM, Luis Garrido wrote:
>> On 04/11/2012 12:12 PM, rosea.grammostola wrote:
>>
>>>> trap `kill -KILL $LSPID` SIGTERM
>>
>>
>> Are you really using backquotes here ?????????? Change them to single or
>> double quotes. You don't need to specify any signal for the kill command.
>
> Ok, but doesn't help. All is started via the nsm-proxy, but when
> stopping the proxy, LS still runs unfortunately

For clarity, I have it now like this


#!/bin/bash

linuxsampler 
--instruments-db-location=/home/derick/linuxaudio/linuxsampler/dericks_instruments.db
 
&

LSPID=$!

# wait for LS to init
sleep 4;

# tell it what file to load
cat "$1" | nc localhost 8888

#handle SIGTERM from NSM by killing LS.
trap 'kill -TERM $LSPID' SIGTERM

#wait for LS to die naturally
wait $LSPID

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to