|
From: rosea.grammostola <ros...@gm...> - 2012-04-11 12:07:35
|
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 |