Jump to content

Recommended Posts

Posted (edited)

Hey all. So I made a thread a few weeks back helping me debug a launcher script that I happened to find with some google searching. With help I managed to get it working and running. I am new to Linux but am trying to pick it up to the best of my ability. I don't like to just ask for help and just use it. I like to ask for help and learn about the answers I am seeking. Anyway the script runs fine but I am looking at a way to tweak it so that it auto-starts itself in a new detached screen session with a specific name.

 

Here is the script:

http://pastebin.com/4uSbgNHa

 

Now forgive me but I thought that the top line of that script (I don't know the formal name of it) would be able to have that script execute in a new detached screen session named MinecraftServer but that does not seem to be the case.

 

Can anyone share with me how I can get this script to execute and upon execution start a new detached screen? I know I can simply start a new screen session and then just execute the script in that screen, but I am looking for a more automatic way to do it, in the event I decide to tweak things further.

 

Another question I have that I feel can be fit in this same thread is if I wish to take that launcher script and write an automatic re-starter into it (I am aware that it has one in the event of a server crash) that can maybe reset the server every night at 2AM, would it be possible to write that into that above script or would a new script need to be written to obtain that?

 

I am running CentOS5 64 bit.

Edited by HalestormXV

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...