Help - Search - Members - Calendar
Full Version: need hint on running multiple instance of same programe
Linuxhelp > Support > Technical Support

im new to linux, im running on a virtual private server http ftp and a game server called sa-mp

to start the sa-mp server i find an .sh script that i've put in the init.d folder.
so far so good.
here is the script im using:


process=`ps auxw | grep samp02Xsvr | grep -v grep | awk '{print $11}'`

if [ -z "$process" ]; then

echo "sa-mp server not running, restarting it."
cd "$sampdir"
nohup ./samp02Xsvr &
echo ""


My question is: what do i need to do to be aible to run 2 instance of the same processe and have them auto-restart like it does for 1 server???

thank you for your time !!!
Not a game player so I know nothing about sa-mp. I am also not sure what your goals are but you can not run a second instance of the game using the same UDP
port. I am not sure if you can specify a configuration file that is not in the top directory of the server. I suppose you would need to create a 2nd copy of the server with its own config file and then create another init script.
Thank you

i find my solution.

i simply rename each process to a different name.
each process have an .sh script that is in crontab

thank you anyway for your help
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.