City of Arabel
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Hubby's Super Server Admin Cheat Sheet (EE)

    Scheduled Pinned Locked Moved Server Management
    1 Posts 1 Posters 118 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DoctorDethD
      DoctorDeth
      last edited by DoctorDeth

      Managing the EE server

      All interactions are designed to go through the wrapper script. Typing server will show a list of options.

      arabelee@ubuntu:~/bin$ server
      ERROR:  /home/arabel/bin/server requires a command argument.
      
      Usage:
      	wrapper.sh [command]
      
      Valid commands are:
      	start  - start the nwn server
      	quit   - stop the nwn server (stop is a valid synonym)
      	log    - display the last 25 lines of the server log
      	status - run the status command and display results
      
      

      These options should be self-explanatory.

      Killing it Manually

      There are three processes that require killing if the server hangs up and is not stoppable via the methods above. There's a script command that launches a bash shell that eventually launches the nwserver-linux command. All three must be killed in the event something hangs up.

      $ ps -eaf | grep arabel | grep nwserver
      arabel      3005       1  0 12:13 ?        00:00:00 script --flush --command LD_PRELOAD=/home/arabel/nwnx/Binaries/NWNX_Core.so nwserver-linux -port 5121 -module Arabel -servername "City Of Arabel"     -userdirectory /home/arabel/nwn     -interactive     -publicserver 1     -maxclients 96     -minlevel 1 -maxlevel 13     -pauseandplay 0     -pvp 2 -elc 0 -ilr 0     -servervault 1     -gametype 0     -oneparty 0     -difficulty 3     -autosaveinterval 0     -dmpassword love92dm43tricks     -adminpassword adm8291flap     -reloadwhenempty 0     -nwsyncurl http://www.cityofarabel.com/Arabel < /home/arabel/nwn/.nwserver.pipe /home/arabel/nwn/nwserver.log
      arabel      3006    3005  0 12:13 pts/2    00:00:00 bash -c LD_PRELOAD=/home/arabel/nwnx/Binaries/NWNX_Core.so nwserver-linux -port 5121 -module Arabel -servername "City Of Arabel"     -userdirectory /home/arabel/nwn     -interactive     -publicserver 1     -maxclients 96     -minlevel 1 -maxlevel 13     -pauseandplay 0     -pvp 2 -elc 0 -ilr 0     -servervault 1     -gametype 0     -oneparty 0     -difficulty 3     -autosaveinterval 0     -dmpassword love92dm43tricks     -adminpassword adm8291flap     -reloadwhenempty 0     -nwsyncurl http://www.cityofarabel.com/Arabel < /home/arabel/nwn/.nwserver.pipe
      arabel      3007    3006 99 12:13 pts/2    05:33:42 nwserver-linux -port 5121 -module Arabel -servername City Of Arabel -userdirectory /home/arabel/nwn -interactive -publicserver 1 -maxclients 96 -minlevel 1 -maxlevel 13 -pauseandplay 0 -pvp 2 -elc 0 -ilr 0 -servervault 1 -gametype 0 -oneparty 0 -difficulty 3 -autosaveinterval 0 -dmpassword love92dm43tricks -adminpassword adm8291flap -reloadwhenempty 0 -nwsyncurl http://www.cityofarabel.com/Arabel
      arabel     22620   22024  0 17:39 pts/0    00:00:00 grep --color=auto nwserver
      

      This looks confusing because of the log command line, but four lines start with arabel. The second column is the process id (in this case, 3005, 3006 and 3007). The last line found was the grep command from the issued command and can be ignored.

      For something a little more readable, you can truncate the line:

      $ ps -eaf | grep nwserver | grep arabel | cut -c1-79
      arabel      3005       1  0 12:13 ?        00:00:00 script --flush --command LD
      arabel      3006    3005  0 12:13 pts/2    00:00:00 bash -c LD_PRELOAD=/home/ar
      arabel      3007    3006 99 12:13 pts/2    05:36:24 nwserver-linux -port 5121 -
      arabel     22741   22024  0 17:41 pts/0    00:00:00 grep --color=auto nwserver
      

      This makes it easier to see the three processes (and still ignore the grep).

      Kill all the things

      # Issue the kill command for the three processes found
      kill -9 3005 3006 3007
      

      In theory, practice and theory are the same. In practice, however, they are not.

      1 Reply Last reply Reply Quote
      • folkloreF folklore moved this topic from Team Lead Forums on
      • folkloreF folklore moved this topic from DM Instructions & Requests on
      • 1 / 1
      • First post
        Last post