LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .sh file hangs or won't startup at all (https://www.linuxquestions.org/questions/linux-software-2/sh-file-hangs-or-wont-startup-at-all-4175418579/)

beasx 07-25-2012 07:47 AM

.sh file hangs or won't startup at all
 
Basically I have this VPS for like 2 weeks and I have been trying to figure out this problem, I have reinstalled OS so many times I had centos 5, centos 6, ubuntu 12 and currently I'm running ubuntu 11.

The same problem appeared on every OS I had installed I tried to install every java none worked still same problem, let me explain

so the problem appears with every server startup... What Im trying to run is runescape private server I have tried like 5 and none worked every had the same problem. I have chmodded the .sh file...

So sometimes when I try to run the file this happens:
http://i.imgur.com/jsjjm.png
Server wont startup at all and just freezes after i run the .sh file then I can type anything into the cmd and it won't do anything...

Then sometimes this happens
http://i.imgur.com/XDx3G.png
But the server doesnt work anyways after I try to connect it crashes I also have error log

And sometimes its about to startup but then it hangs on first line http://i.imgur.com/XHoB3.png


Here is the error log:
http://pastebin.com/u3Yr5WdJ

I have no idea what is the problem I tried everything ...

Thanks to anybody who could help me!

chrism01 07-25-2012 09:16 PM

1. in general, you don't start a daemon that way, as it then remains attached to the terminal, as you've noticed; try
Code:

nohup /path/to/script/run.sh &
2. you'll have to contact the developers to fix the Java code errors (or google).

John VV 07-25-2012 10:23 PM

Quote:

The same problem appeared on every OS I had installed I tried to install every java none worked still same problem,
beasx ,I take it you are not aware that almost every linux distro is now using OpenJDK and is NOT using Oracle's java
and that OpenJDK is most likely ALREADY installed

so if you MUST replace it with Oracles version of java you need to uninstall openjdk and install oracles java
( think back to the ROYAL MESS with sun java and Microsoft's proprietary version of java )

so uninstall openjdk
or use alternatives to have both installed


Quote:

I have chmodded the .sh file...
what exactly did you do ?
this ?
Code:

su -
chmod +x *.sh

or something else

from this
http://i.imgur.com/jsjjm.png
you DID NOT install Oracle's java or if you did then OpenJDK is being used
( i take it you did NOT set "alternatives " to point to Oracles java )
"alternatives " is used so that more than one version of some program can be installed at the same time


All times are GMT -5. The time now is 10:46 PM.