User User name Password  
   
Thursday 21.11.2024 / 04:06
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > linux - general discussion > minecraft server mcmyadmin troubles
Show topics
 
Forums
Forums
Minecraft server McMyAdmin troubles
  Jump to:
 
Posted Message
Member
_
13. September 2012 @ 19:27 _ Link to this message    Send private message to this user   
I have setup a minecraft server with McMyAdmin.

To start the server I ssh into it, and run the command sudo ./MCserveretcwhatever

The problem is when I exit out of the ssh, the server stops, however as long as I am connected via ssh, the server stays up.

What am I doing wrong and how can I rectify this?

If you need anymore information, just ask

Thanks

-Nelmeco

Comp
-6-core 3.2 AMD, 12gb DDR3, Geforce femi 560ti, Running Win7 x64

Laptop
-Dual boot Win7 + Ubuntu 11.10 Gnome Classic
Advertisement
_
__
Schmick
Junior Member
_
14. September 2012 @ 04:33 _ Link to this message    Send private message to this user   
Try:

sudo ./MCserveretcwhatever &


Also look at the man page, it might have a flag you can pass to daemonise it.
Member
_
14. September 2012 @ 08:44 _ Link to this message    Send private message to this user   
Originally posted by Schmick:
Try:

sudo ./MCserveretcwhatever &


Also look at the man page, it might have a flag you can pass to daemonise it.
Thank you very much, that worked. Could you explain what that did?

I appreciate it.
Schmick
Junior Member
_
14. September 2012 @ 19:36 _ Link to this message    Send private message to this user   
No problem mate, we've all been in the same position when we were learning Linux.

The & symbol at the end of a command tells it to run in the background, in the case of a server program like you're using, that sort of turns it into a daemon.

Daemons in *nix are like services in Windows. SSH that you connect into is a daemon for instance, so just like your minecraft server except automatically started on boot.

Depending on your distro, you should find a bunch of daemon scripts in /etc/rc5.d/ or /etc/rc.d/ . You might even find one in there related to minecraft (just guessing, I haven't searched for it). Can try playing with:

sudo /etc/rc5.d/[daemon] [start/stop/restart]


or

sudo service [daemon] [start/stop/restart]


Always best not to play with ssh unless you have physical access to a machine to get it back up and running if it stops!

And a bit of a background on the significance of rc5 and all the other rcX numbered folders - they're related to runlevels. http://en.wikipedia.org/wiki/Runlevel gives a bit of background. Not really necessary to know, but for a typical Linux system with graphical desktop you'll be left in run level 5 after boot. /etc/inittab controls some of that stuff, but should only very rarely ever have to go in there (if setting up Arch Linux for example, is where you can tell it to boot directly into slim if it isn't run as a daemon).

^ PEBKAC ^
Member
_
18. September 2012 @ 16:06 _ Link to this message    Send private message to this user   
Its actually a headless server without a GUI. I'm currently studying to get an Information Systems Management degree and I'm trying to learn as much about Linux as I possibly can.

I appreciate the information!
Schmick
Junior Member
_
20. September 2012 @ 02:18 _ Link to this message    Send private message to this user   
If you want to learn a bit more about Linux, try installing Arch. It will force you to learn a lot about how the individual applications fit together and system administration.

^ PEBKAC ^
Member
_
20. September 2012 @ 10:01 _ Link to this message    Send private message to this user   
I've got a lot of time today so I think Ill throw it on a virtual machine and figure it out. Thanks for the suggestion.
Advertisement
_
__
 
_
jhonsmith3741
Newbie
_
24. December 2012 @ 01:12 _ Link to this message    Send private message to this user   
The & symbol at the end of a command tells it to run in the background, in the case of a server program like you're using, that sort of turns it into a daemon. I appreciate the information!

!!!..<<..Usman Gee..>>..!!!
afterdawn.com > forums > software, operating systems and more > linux - general discussion > minecraft server mcmyadmin troubles
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork