Hello everyone, I was wondering if someone would be kind enough to help me create a start up script for my CentOS 6 servers. This is what I have so far
yum install java-1.6.0-openjdk
y
yum install screen
y
cd root
mkdir server
cd server
wget *Link to my drop box, are there better alternatives to this*
chmod +x forge-1.7.10-10.13.2.1272-universal.jar
java -Xmx1792M -Xms1792M -jar forge-1.7.10-10.13.2.1272-universal.jar nogui
Basically I need this because I use the server so that my sister, girlfriend and myself can play. After we are finished playing I download the server directory and destroy the server. I'm using Vultr and they offer startup scripts, I wanted to create one so its quicker to get the server up and running.
Thanks in advance, if you need more information just ask.
PS. Yes I know its bad to install as root user, but as I don't advertise the server and am destroying it I don't see any harm.
I did quickly glance over that, but the quick glace lead me to believe that it didn't back up files rather just there location. I will however look into it again and give it a test trial.
Basically I need this because I use the server so that my sister, girlfriend and myself can play. After we are finished playing I download the server directory and destroy the server. I'm using Vultr and they offer startup scripts, I wanted to create one so its quicker to get the server up and running.
Thanks in advance, if you need more information just ask.
PS. Yes I know its bad to install as root user, but as I don't advertise the server and am destroying it I don't see any harm.
JRE6 is old .:. JRE7 (/JDK)
Also a screen session will start detached
If you don't want it to detach, remove the -d argument from the last line
EDIT: Fix screen -s to -S, bash to bash -c
EDIT2: So you actually need to download the installer to get the relevant libraries
And agree the eula
I did quickly glance over that, but the quick glace lead me to believe that it didn't back up files rather just there location. I will however look into it again and give it a test trial.
No problem, I've always just preferred CentOS low resource impact.
I have basic knowledge and put what I did know into it so that someone that knew what they were doing could help me out.
Thank you very much for your help, I will try it out shortly.