Making Minecraft Linux server

Help with Game Server Configs + Mods of all types

Moderator: Emmz

User avatar
Smock
0ld Sk00L
0ld Sk00L
Posts: 264
Joined: Sat Feb 23, 2008 9:18 pm

Re: Making Minecraft Linux server

Post by Smock »

red_ned wrote:ok i changed my check script timer to make sure the time around 6:15 is kept clear for backups and restart

Code: Select all

5,10,25,30,35,40,45,50,55,00 * * * * /home/cic/minecraft_check.sh
15,20 00 * * * /home/cic/minecraft_check.sh
15,20 01 * * * /home/cic/minecraft_check.sh
15,20 02 * * * /home/cic/minecraft_check.sh
15,20 03 * * * /home/cic/minecraft_check.sh
15,20 04 * * * /home/cic/minecraft_check.sh
15,20 05 * * * /home/cic/minecraft_check.sh
15,20 07 * * * /home/cic/minecraft_check.sh
15,20 08 * * * /home/cic/minecraft_check.sh
15,20 09 * * * /home/cic/minecraft_check.sh
15,20 10 * * * /home/cic/minecraft_check.sh
15,20 11 * * * /home/cic/minecraft_check.sh
15,20 12 * * * /home/cic/minecraft_check.sh
15,20 13 * * * /home/cic/minecraft_check.sh
15,20 14 * * * /home/cic/minecraft_check.sh
15,20 15 * * * /home/cic/minecraft_check.sh
15,20 16 * * * /home/cic/minecraft_check.sh
15,20 17 * * * /home/cic/minecraft_check.sh
15,20 18 * * * /home/cic/minecraft_check.sh
15,20 19 * * * /home/cic/minecraft_check.sh
15,20 20 * * * /home/cic/minecraft_check.sh
15,20 21 * * * /home/cic/minecraft_check.sh
15,20 22 * * * /home/cic/minecraft_check.sh
15,20 23 * * * /home/cic/minecraft_check.sh
it just has the 1st line making it run on certain minutes of every hour then as i missed out 15 and 20 past th hour i do it on every other hour except the 6:00 am time slot
Would this not be easier:

Code: Select all

5,10,25,30,35,40,45,50,55,00 * * * * /home/cic/minecraft_check.sh
15,20 00-05 * * * /home/cic/minecraft_check.sh
15,20 07-23 * * * /home/cic/minecraft_check.sh
ImageImageImage
Visit my Steam Profile - [url=steam://friends/add/76561197960935400]Add me to your Steam friends[/url]
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Making Minecraft Linux server

Post by red_ned »

it would be easier indeed, i think i was a little fried by the time i completed all the inter-screen command structure etc so i forgot some shorthand crons but it is worth changing to your version to tidy up, I just haven't revisited the system as yet as it was working so wtf eh!

I do use a lot of screens as i find them easier to manage especially on checking its up rather than running invisible processes in the run-level menu, i think its probably your fault i do after taking on the Wireplay CSS servers as i got used to it all and even use it on servers at work.
Image
May we all fight to live another day.
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Making Minecraft Linux server

Post by red_ned »

nice to see someone bothered reading the thread, took me quite a while to document it all but i didnt find a definitive complete linux setup and management guide anywhere on the net so pieced it all together myself
Image
May we all fight to live another day.
User avatar
Smock
0ld Sk00L
0ld Sk00L
Posts: 264
Joined: Sat Feb 23, 2008 9:18 pm

Re: Making Minecraft Linux server

Post by Smock »

I thought it might have been the wireplay method.

I wasn't bashing screen btw, just wondered if it's still the thing people use. It's so difficult to manage that kinda stuff through ssh - you can't even really run stuff as a background task/job; once you exit your ssh session, you can no longer bring the background task to foregound :(
Screen certainly helped back in the day with the wireplay stuff.

If anything, these days, I'd be tempted to see if I could run stuff as a service (or just a spawned cron task), and just dump all the output into a logfile. You could grep ps for it for checking/monitoring, and tail the logs if needed.

Could be messy though - not really tried it with anything that doesn't usually come with init scripts :)
ImageImageImage
Visit my Steam Profile - [url=steam://friends/add/76561197960935400]Add me to your Steam friends[/url]
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Making Minecraft Linux server

Post by red_ned »

screens are just so easy, only troubles you really have is if you try using wine, but you really deserve all you get running winblows apps on linux! although i do run the windows version of no-ip update tool on my box for the minecraft server
Image
May we all fight to live another day.
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Making Minecraft Linux server

Post by red_ned »

Just read this back and forgot one thing, the main reason i use screens rather than service is i like the server to be down while backing up so nothing b0rks during the zip.
Being able to send commands into the screen also allows notification before taking it down.
i do use pid files for my tcl bots as they don't use screens natively and I didn't want to bother making it that way.

i will soon be posting my new sets of scripts for running any Valve Pipe servers as those were absolute bastards to get working both for installation and updating - took me days to get it all sorted so they will be up next as again i found no definitive script collection and as most valve games have now changed to the newer platform (rather than the old steam tool of hldsupdatetool.bin) but will take me a few hours to compile so post at weekend.
Image
May we all fight to live another day.
Post Reply