Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> need hint on running multiple instance of same programe
post Apr 12 2009, 08:07 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 2
Joined: 12-April 09
Member No.: 14,396


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 !!!
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th June 2018 - 08:27 PM