HELP ME! URGENT - Entered "exit" before previous command had completed run
Please help me (Newbie) urgently.
I was restarting our application via SSH and thought the command was complete when I entered "exit". This obviously was a bad thing to do and, the application didn't restart and now when I try to restart
using the SSH command line
Thanks and appreciated in advance.
Here's a suggestion.
Try ps -A (if you don't see the desired results as user, try it as root). If the output contains the hung process(es), try the kill command on them. Then try to restart them.
See man ps and man kill for details.
Most restart scripts will attempt a clean shutdown before restarting. It looks as thats the case. (Path is not set and so cant exit).
So you will have to go into "restart.sh" and manually set the path, complete the shutdown and start up.
How big is the code in restart.sh? Make a copy of startup.sh before examining and tinkering with it as below:
mv restart.sh restart_safe.sh # this retains file info like date etc.
cp restart_safe.sh restart.sh
Because you posted your thread with the subject beginning with "HELPME! URGENT", you are likely to get some comments you could have avoided.
Thanks for the quick responses.
Not sure if this will help other newbies like me in future. But I was helped with this set of instructions from the developer. Basically he told me entering "exit" before the process was complete de-configured the path.
So in my case this is was re-configured it.
After it completed then I was able to re-run the restart.sh successfully.
All happy now.
|All times are GMT -5. The time now is 07:49 PM.|