Quote:
Originally Posted by
neutronscott
And this has to stay inside of a screen session because it's interactive, or just a way to view the output?
running your "exec" script in the background is not sufficient?
shell$ ./exec &
Then you want a crontab to make sure 'exec' is running?
The screen is interactive and the only way to view the output.
The exec script covers keeping the Java server running only if it doesn't consume all available memory and the OS doesn't kill all of the processes.
The exec script is executed in the screen to run, view, and interact with the server with ./exec .
When the machine the server is on is rebooted, I would like a script to cd to the server dir, start a screen with screen -S server1, then execute the exec script within the screen with ./exec . Then have the script check to make sure all of the processes are running. If not, restart them.
Sorry for not being able to explain everything very precise or easily.