Search Results

Search: Posts Made By: MacG32
9,328
Posted By MacG32
After extensive testing, it's finally all worked...
After extensive testing, it's finally all worked out.

Both files are saved in the server's directory and a crontab job running every minute with * * * * * /home/user/serverdir/chkscr >/dev/null...
9,328
Posted By MacG32
Finally got it with your help neutronscott. Thank...
Finally got it with your help neutronscott. Thank you for all of your help. :D

I removed the " & echo $! > cb.pid" from the bottom of the chkscr script and added "ps -aef | grep -v grep | grep...
9,328
Posted By MacG32
Seems I'm on to something, but can't get the...
Seems I'm on to something, but can't get the correct PID. The PID that is saved is of the process that executes everything and not the running command's PID.

chkscr
#!/bin/sh
# chkscr: checks if...
9,328
Posted By MacG32
In my case, the -r only produces 1 additional...
In my case, the -r only produces 1 additional chkscreen and java-daemon.sh process, and only 1 Java server process. When I changed the -r to -S, it kept making chkscreen and java-daemon.sh processes...
9,328
Posted By MacG32
Thank you very much neutronscott for your help,...
Thank you very much neutronscott for your help, this has worked like a charm. Looks like I was way off. Thanks again. :)
9,328
Posted By MacG32
The screen is interactive and the only way to...
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...
9,328
Posted By MacG32
Help scripting to start, check, and restart processes
Here it goes from my unexperienced point of view. I am using CentOS 5.6. I have a Java based server that needs to be running 24/7/365. To begin from the machine the server is on rebooting; I SSH in...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy