LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HELP ME! URGENT - Entered "exit" before previous command had completed run (http://www.linuxquestions.org/questions/linux-newbie-8/help-me-urgent-entered-exit-before-previous-command-had-completed-run-935164/)

dajobi 03-18-2012 07:33 PM

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
Code:

~/tardis/production/delta/trunk/cron/restart.sh
Instead of running the restart script it instead displays...
Code:

.: 13: Can't open exit/bin/functions
Does anyone have an idea what I can do to fix it?

Thanks and appreciated in advance.

frankbell 03-18-2012 07:52 PM

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.

AnanthaP 03-18-2012 07:53 PM

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.

OK

dajobi 03-18-2012 08:12 PM

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.

Check dir

Quote:

pwd
/home/tasvac
Then

Quote:

cd ~
. ./setup
User/Instance: tasvac/production
Enter Setup Dir [exit] (d: /home/tasvac/tardis) ? /home/tasvac/tardis
Then just followed the steps entering "return" as it went.

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 04:22 PM.