[EMAIL PROTECTED] schrieb:
(...) == "lenya.sh" == lenya.sh needs work. Why does it keep running? It should start java and quit. Every java line should end in an ampersand (except CLI?)
The cocoon.sh is like that, too. Not starting it in background makes for easier restart (Ctrl-C, arrow up and enter ;) ), so I assume it is this way to facilitate the development cycle. What I did for my application was to leave the existing options as they were, and added "start" and "stop" which use the PID instead
The process ID for the top-level java process should be stored in lenya.pid. (Wolfgang and I like that filename.) It should check if lenya.pid exists before starting again. If the file exists, try to stop the process before starting again. I think a wait is needed; it complained the port was in use when I used the restart option.
Definitely, a restart option would need a sleep interval between stop and start options; how long depends on your machine, but to be conservative I'd set it to 10 seconds
-- Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
