For starting James I use
nohup ./run.sh &
which does not kill james if you close terminal and for stopping james,
I use:
ps auxwww|grep james|grep -v grep|grep java|awk '{print $2}'|xargs kill -9
which should only kill those java processes belonging to james.
Stephan
wursttrooper wrote:
>There is a workaround for that, using the startproc tool.
>
>startproc /usr/local/james/bin/run.sh
>
>this works for me, until starting/stopping is implemented in JAMES. But
>there is a drawback. Stopping JAMES is only possible via
>
>killall java
>
>This is especially painful if you are also running other java servers (e.g.
>tomcat).
>
>Eike
>
>----- Original Message -----
>From: "test" <[EMAIL PROTECTED]>
>To: "James Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, February 13, 2002 5:35 PM
>Subject: JAMES shuts down when ssh session ends
>
>
>>I use ssh instead of telnet. When I login to my server with ssh and start
>>james using "./run.sh &" and then close my terminal/ssh session JAMES will
>>shutdown too. I looked at my processes "ps -A f" and noticed that JAMES is
>>starting as a child process of my ssh session. How do I start JAMES
>>
>remotely
>
>>without it starting as a child process of ssh. Shouldn't the "&" allow for
>>this?
>>
>>Brandon Goodin
>>Phase Web and Multimedia
>>P (406) 862-2245
>>F (406) 862-0354
>>[EMAIL PROTECTED]
>>http://www.phase.ws
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>>For additional commands, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>>
>
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>