Run minecraft server as service
8 replies [Last post]
davidbullship
WoM Member
Members
WoM Member: 20989
WoM Coins: 0

I want to find a plugin/serivce installer for Minecraft and I'll need to find an init script so I can close this ssh session and not lose the server. I'm using the official server hardware.

Any help would be nice.

Jon
WoM Member
Members
WoM Member: 4062
WoM Coins: 20
Assuming you're using a linux server...

Turning the server on:
nohup java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer

Turning the server off:
ps aux
Now find the process like the one below:
root 4341 ... java -cp minecraft-server.jar com.mojang.minecraft.server.Minecraf...
Then do:
kill 4341
Where 4341 is the bold number from the process.

davidbullship
WoM Member
Members
WoM Member: 20989
WoM Coins: 0
Well that won't work. I

Well that won't work. I already had nohup. That will die on reboot.

An init script would be extremely helpful. :)

Thank you for your reply.

Jon
WoM Member
Members
WoM Member: 4062
WoM Coins: 20
I will try writing an init

I will try writing an init script for you, if I find the time to. As of now, nohup will still work - just not when you restart your server.

davidbullship
WoM Member
Members
WoM Member: 20989
WoM Coins: 0
If it isn't any bother of

If it isn't any bother of course! I'd be really appreciative if you do!
I'm surprised this doesn't exist anyway!
Thank you for your generous help Jon!

davidbullship
WoM Member
Members
WoM Member: 20989
WoM Coins: 0
Just updating saying that I'm

Just updating saying that I'm still interested if you've made any progress Jon

Jon
WoM Member
Members
WoM Member: 4062
WoM Coins: 20
Still busy - I might have

Still busy - I might have time tonight.

davidbullship
WoM Member
Members
WoM Member: 20989
WoM Coins: 0
Thank you for your prompt

Thank you for your prompt response! Just whenever you find time. Just letting you know I'm still here and didn't wander off to something else.

solarisfire
WoM Member
Members
WoM Member: 73543
WoM Coins: 0
Init Script