logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Looking for Linux help

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
DM_Vecna



Joined: 10 Feb 2010
Posts: 37

PostPosted: Sat Jun 23, 2012 2:28    Post subject: Looking for Linux help Reply with quote

1. Does anyone have a way to launch nwnx2 on reboot of ubuntu server? Normally when I restart my server I
start a new screen
cd/nordock/awakening
./nwnstartup.sh
detach from the screen
log out

But I am new to Linux and not sure how to add a startup script.

2. I am looking for a way from in game to activate my nwnx2 restart script. Normally from the command line I
screen -x
exit
This would on shut down fire my startup script but I am looking for the best way to do this from in game.


Thanks so much!
Back to top
View user's profile Send private message Send e-mail
addicted2rpg



Joined: 01 Aug 2008
Posts: 106

PostPosted: Sat Jun 23, 2012 20:19    Post subject: Reply with quote

You can start scripts on reboot through the rc.d system, or by using the @reboot directive in crontab, among other ways.

I don't run a PW, I mostly just code, so I actually can't answer what conventions admins use to gracefully restart their servers "in game".

The baseball bat method (I am sure there is much better), I suppose is to have a job ocassionally poll the database for when its time and excecute the necessary kill/restart commands. In game, your restart condition can be placed into the DB via nwnx2 using a self-created DM tool or some such..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group