I have installed my mod on linux server and wanted a script to make sure it is running .This one checks every minute and if not it starts it.
I have 2 questions ...
1.Will linux read my nwnplayer.ini settings so I dont have to put in script?
2.Dont I have to make sure this line is in the script? export LD_LIBRARY_PATH=./miles:$LD_LIBRARY_PATH
Script::::::
#!/bin/bash
# NWN Server Process Monitor
#Get in the right directory
NWN_DIR=/home/georage/NWN
cd $NWN_DIR
# Command to run
RESTART="./nwserver -module mine2keep"
#path to pgrep command
PGREP="/usr/bin/pgrep"
# daemon name
HTTPD="nwserver"
# find pid
$PGREP ${HTTPD}
if [ $? -ne 0 ] # if not running
then
# restart
$RESTART
fi
this is where I got the script from ::::
http://nwn.bioware.c...&forum=56&sp=75