I do not know anything about how NSM kills applications at the end of a
session so I can only offer general comments.  I see your script just
brings linuxsampler to the foreground (with fg command) which do not see
would be connected with killing linuxsampler, unless NSM sent a ^C the
script   I see you save the process ID (LSPID), maybe NSM wants processes
to return the processID so it can kill the process at the end.  If so you
could have your script return the LSPID by putting "echo $LSPID" at the end
(instead of "fg").   One way to kill linuxsampler with with the command
"killall -q linuxsampler".  If NSM allows you to supply a "kill" script you
could use that.  

------------------------------------------------------------------------------
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