Hubby's Super Server Admin Cheat Sheet (EE)
-
Managing the EE server
All interactions are designed to go through the wrapper script. Typing
serverwill 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 resultsThese 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
scriptcommand that launches abashshell that eventually launches thenwserver-linuxcommand. 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 nwserverThis 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 thegrepcommand 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 nwserverThis 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 -
F folklore moved this topic from Team Lead Forums on
-
F folklore moved this topic from DM Instructions & Requests on