EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Script to help setup server on Linux (https://www.eqemulator.org/forums/showthread.php?t=30773)

orkim 05-11-2010 07:46 PM

kai,

That might be nice. It would be awesome and I'd just start a thread for it, but the editing of posts over X hours/days whatever old doesn't seem to work well.

What would be really nice is if that box is a linux box too so I could d/l and check the script a few times a week or something.

Let me know.

-ork

Mirakus 05-19-2010 09:43 AM

Thanks so much for your contributions/additions to this! Using this script (and some of the advice contained therein), is what was able to finally get me up and running.

My problems I was detailing in this thread: http://www.eqemulator.org/forums/showthread.php?t=31235 I believe were mostly caused by me having missing links/files in my server directory.

It is also worth noting to beginners that if they plan on running their own login server, they will have to link/copy login.ini (believe it's in source/EQEmuLoginServer/login_util/) to their server directory (at least that's what I had to do). It might sound obvious, but none of the Linux tutorials I was working through ever mentioned that. Also missing from the Linux tutorials were how to set up the database for the login server.

I think it would be a good idea to add to this script and possibly add even more automation for things such as sourcing databases, but I suppose that is highly dependent on one user's needs, and maybe unnecessary. If I make any such additions, I will be sure to repost it here.

Thanks again!

Xecuter 01-03-2011 01:33 AM

Wonderful script.

Still took a little effort but what an improvement on trying to find everything myself!

cerbere 05-12-2011 06:10 AM

this script helped me a lot to get things done.
now using the start script generated here I got a little issue, but I'm not sure it's effectivly an issue.
when i type ./start in my terminal i got this (I didn't paste the beginning) :
Code:

+ touch .lock-world
+ '[' 1 ']'
+ sleep 15
+ ./persist_world
+ '[' '!' -e .lock-launcher ']'
+ touch .lock-launcher
+ '[' 1 ']'
+ ./eqlaunch zone
+ '[' 1 ']'
+ ./chatserver
lotso@benlaptop:~/eqemulator/server$ + ./mailserver

so it's weird in the sense it doesn't go back to my prompt and it's stuck after ./mailserver and at the same time it goes to my prompt after ./chatserver is issued.
is there a typo somewhere or I'm doing something wrong ?
here is the part of my start script that corresponds to the output above, I dont see anything that would cause it to go back to my prompt after ./chatserver :

Code:

  # wait for shared memory to load
  sleep 15
fi

# Start up the official launcher.
if [ ! -e .lock-launcher ]; then
  # Create our lock file.
  touch .lock-launcher

  # Launch!
  ./eqlaunch $LNAME 2>&1 > logs/launcher &
fi

# Determine if we should start the chat server.
if [ $USE_CHAT_SERVER ]; then
  ./chatserver 2>&1 > logs/chatserver &
fi

# Determine if we should start the mail server.
if [ $USE_MAIL_SERVER ]; then
  ./mailserver 2>&1 > logs/mailserver &
fi


rencro 05-12-2011 01:12 PM

On windows chatserver and mailserver are on the same port, but in linux they need their own ports.. Check you xml config file to see if you have chatserver and mailserver on same port

orkim 05-18-2011 02:59 PM

Quote:

Originally Posted by cerbere (Post 199783)
this script helped me a lot to get things done.
now using the start script generated here I got a little issue, but I'm not sure it's effectivly an issue.
when i type ./start in my terminal i got this (I didn't paste the beginning) :
Code:

+ touch .lock-world
+ '[' 1 ']'
+ sleep 15
+ ./persist_world
+ '[' '!' -e .lock-launcher ']'
+ touch .lock-launcher
+ '[' 1 ']'
+ ./eqlaunch zone
+ '[' 1 ']'
+ ./chatserver
lotso@benlaptop:~/eqemulator/server$ + ./mailserver

so it's weird in the sense it doesn't go back to my prompt and it's stuck after ./mailserver and at the same time it goes to my prompt after ./chatserver is issued.
is there a typo somewhere or I'm doing something wrong ?
here is the part of my start script that corresponds to the output above, I dont see anything that would cause it to go back to my prompt after ./chatserver :

cerbere, glad to see someone is getting use out of the script.

looking at that output your prompt is appearing again. you just need to hit enter a time or two. on the last line, the prompt is printed before it outputs th + ./mailserver line. (lotso@benlaptop)

when i wrote this script, i didn't really try to make sure all the output was flushed and such before returning so its just an artifact that can be safely ignored. it may not appear depending on your terminal type, if i recall correctly.

regarding the ports, you can run either the mailserver + chatserver (the older clients work with these) or if you're using one of the newer supported clients you would be better to run ucs. it consists of both the mail and chat functionality within a single server. it will be one set (mail+chat) or the other (usc) and you WILL NOT want to run all of them together.

i hope that helps!

-ork


All times are GMT -4. The time now is 07:48 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.