Menu

#135 Add tips for running in background under Linux to docs

open
nobody
None
5
2008-11-20
2008-11-20
Kenquad
No

Peter, per your request, here's a repeat of my forum post:

Thanks to Eric Cohen at jguru.com for this solution. I don't have the knowledge to say whether it is technically perfect, but it worked for me. Maybe someone else will find it helpful. All one need do is modify the default startup script:

java -Djetty.port=80 -Djtrac.home=data -Dfile.encoding=UTF-8 -DSTOP.PORT=8079 -DSTOP.KEY=jtrac -jar start.jar

to run suppressed under nohup: (what is nohup, anyway?:-)

nohup java -Djetty.port=81 -Djtrac.home=data -Dfile.encoding=UTF-8 -DSTOP.PORT=8079 -DSTOP.KEY=jtrac -jar start.jar </dev/null>>jtrac.log>>jtrac.error&

And presto! We've got a clean, clear console with jtrac running persistently underneath even after logout.

As I mentioned, I don't know what I'm doing with this... so if anybody sees any salient problems, please point them out.

I also added a quick and messy script to clear the log files once a week so they don't get too big.

Discussion


Log in to post a comment.