SmartBear Support wrote:
Elvorin wrote:What do you mean by 'running their sh-file'? Currently I see loadUI-agent.sh is running in 2 processes, one with pure shell, one with nohup. I dont if that sh file also spawns the java process. Is my only option to mimic these two process creation by writting a script or manually executing them in 2 commands?
If that's my only option, I would say that's a very poor way of implementation. I should just have one script to run with start, stop and restart option, which should create all those background and nohup processes.
Sorry, I don't understand. What I mean is:
* To start the loadUI agent in Linux, run loadUI-agent.sh
* To stop the loadUI agent in Linux, press Ctrl+C in the terminal window in which the loadUI agent opened.
It doesnt work.
Following is what i see are running (found by running 'ps aux | grep load') -
543 21163 0.0 0.0 4488 988 ? S Feb22 0:00 /bin/sh -c nohup "/home/loadui-agent/eviware/loadUI-Agent-1.5.0/loadUI-agent.sh" > /dev/null 2>&1
543 21164 0.0 0.0 4492 1024 ? S Feb22 0:00 /bin/sh /home/loadui-agent/eviware/loadUI-Agent-1.5.0/loadUI-agent.sh
543 21168 0.0 12.3 1386000 510072 ? Sl Feb22 0:58 jre/bin/java -Xms128m -Xmx768m -XX:MaxPermSize=128m -cp /home/loadui-agent/eviware/loadUI-Agent-1.5.0:/home/loadui-agent/eviware/loadUI-Agent-1.5.0/lib/* com.eviware.loadui.launcher.LoadUILauncher -Dloadui.instance=agent -nofx
If I press Ctrl+C and again run the same command (ps aux | grep load), I find the processes still running. So now how do I stop all these processes other than running kill command?
btw, 543 is 'loadui-agent' user.
What I was suggesting to have ability to do the following -
./loadUI-agent start --starts the agent
./loadUI-agent stop --stops the agent
./loadUI-agent restart --restarts the agent