.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! |
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 & |
Quote:
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:
this ? Code:
su - 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. |