For detecting the server crash, you need some info from which to tell that, maybe from a log file generated by the JBoss server, you can setup a cron job to grep the log file regularly. After that, you can try to stop the JBoss server with its stop script, wait some time and then use ps -ef | grep my_jboss_server to check whether it's stopped, if it is not, you may want to directly kill the process(Caution, killing a JBoss process directly may cause some damage to your data, some lifecycle code may not be executed).
The following script is for reference:
Note: Try these commands at home before you use them on production environment.
hello everybody,
I am trying to find the path of the Recycle Bin. I know that it's a temporary storage place, but it should have a path that we can refer to.
I want to know it because I sometimes use cygwin to work on Windows, and when you delete something with it, it's gone. I just checked... (4 Replies)
Hi,
I am new to HP-UX environment. Could someone help me giving commands to recycle the server and how to go to single user mode.
Thanks
Hemanth (3 Replies)
The first candidate release (CR1) for JBoss Application Server 5 has been released. There is a lot of good background from Sacha Labourey and feature details from project lead Dimitris Andreadis. Now that version 5 of the new application server has been through alpha and beta stages, this... (0 Replies)
Hello,
I have having problems with an assignment and am pretty desperate. My assignment is to create a shell script that does a Recycle_Bin tasks. You can only open this with PuTTY software or Knoppix. Perhaps on other software that are able to read linux language.
My part is stuck... (2 Replies)
Hello All,
I need a shell script to monitor JBOSS web server.If the JBOSS web server is down, then the script should send a mail.
Please help on this.
Regards,
Sachin (2 Replies)
Hi~ I have a problem with my recycle bin code.
#!/bin/bash
if test !-d ~/.recyclebin #if recycle bin does not exists
then
mkdir ~/.recyclebin # then create recycle bin
else
mv $1 ~/.recyclebin #else move the deleted file in the recycle bin
fi
so when I... (10 Replies)
Hi,
I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is :
It should take the name of instances from one text file named active-servers and recycle those instances.
1.... (6 Replies)
Hi.
I'm started to use minix 3.2.1 recently and I'm trying to create a recycle bin for it. I'm kinda struggling on how to do it. I searched internet and I found scripts created for it but I actually didn't learn how to create scripts in college and I'm not sure if I understand them. I just wanted... (1 Reply)
Hi.
I've created scripts for a recycle bin that can list, restore and empty it. I only have the problem of deleting two files with the same name. When I do it one file overwrite the other. What could I do to resolve it? The only thing I can think is asking the user to rename file before moving to... (2 Replies)