View previous topic :: View next topic |
Author |
Message |
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Wed Mar 28, 2007 4:09 Post subject: Reset plugin not killing my nwserver instance? |
|
|
OK, I have pretty much proven to myself that the reset command is not killing the server so it can restart properly. It shuts it down, and the server reloads, but does not load up the module. Once I issue a kill command, the server goes down and immediately comes back up, this time loading the module. I am confused by this.
Here is the script I use to load nwnx2.so and nwserver
Quote: |
#!/bin/bash
while [ true ]
do
LD_PRELOAD=./nwnx.so ./nwnserver (stuff)
sleep 5
done
|
I need to get this figured soon, because I am off on vacation soon and need to make sure my head DM has the ability to reset the server if necessary. Anybody have a thought on this? _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Mar 28, 2007 8:24 Post subject: Re: Reset plugin not killing my nwserver instance? |
|
|
Do not preload nwserver.
I've corrected some things in your script:
Quote: |
#!/bin/bash
while [ true ]
do
LD_PRELOAD=./nwnx2.so
./nwserver (stuff)
sleep 5
done
unset LD_PRELOAD
|
|
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Wed Mar 28, 2007 13:42 Post subject: |
|
|
I tried this and it does not load NWNx for whatever reason. THe server reloads quite nicely though.
Forgive my fumblings, I am a long time Windows user who just installed Ubuntu and is learning as I go. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Mar 28, 2007 15:35 Post subject: |
|
|
Try to replace "LD_PRELOAD=./nwnx2.so" with "export LD_PRELOAD=./nwnx2.so". I doubt that this will make a difference, though. |
|
Back to top |
|
|
atika
Joined: 12 Apr 2008 Posts: 4 Location: Seattle
|
Posted: Sun Apr 13, 2008 18:22 Post subject: Segment fault on Sleep? |
|
|
virusman wrote: | Try to replace "LD_PRELOAD=./nwnx2.so" with "export LD_PRELOAD=./nwnx2.so". I doubt that this will make a difference, though. |
For reasons I have no clue of, if I don't use export first, it will not load the rest of the plugins. I'm assuming YMMV.
The thing I'm wondering about is why I'm getting a segment fault on the sleep line. If I'm reading my screen right, sleep and the NWNX2lib: Init are stepping on each others toes. It crashes creating a core dump and then it restarts just fine. I wouldn't have even noticed if I hadn't seen the bomb. |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Tue Jul 01, 2008 16:02 Post subject: |
|
|
what i've since discovered is that if i go into the system monitor and right click then kill the server instance, it fires right back up as it should. does this help? _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
william_hunter
Joined: 31 Jan 2007 Posts: 149
|
Posted: Wed Jul 09, 2008 2:54 Post subject: |
|
|
Which led me to look at permissions of the files, and lo and behold...they were not correct. Suddenly, everything starts back up nicely. _________________ The Realm of Tharagon NWN PW |
|
Back to top |
|
|
|