I gang

Small script shell to make work on centos

Hello,

Well,It is just a small problem to solve,i have one shell script and i wanna make it work on my server,i have tried but wont work,i puted on root directory but it only return value "0" and doesnt turn on the server,i wanna run multiples server in each folder but of course with name differents samp1,samp2,samp3...this script is added on cronjob and run everyminute to check if the server is turned on and if not i will run

the script code is

#!/bin/sh

PROCESS_COUNT=$(ps aux | grep samp1 | grep -v grep | wc -l)

echo $PROCESS_COUNT

case $PROCESS_COUNT in

0) /root/samp1/samp1 &

;;

1) echo "OK, program is already running once"

;;

*) echo "OK, program is already multiple times"

;;

esac

Well if you think this script is not good,you can build one improved

My system is Centos 5,Running on VPS

I wanna just the script installed and working in 2 VPS,i will give shell acess,ftp or what needed

Færdigheder: Linux, Script Installering

Se mere: centos ftp script, shell script centos, centos login script, small centos, script centos, centos shell script, centos service script, shell centos, create shell script centos, centos shell, create script centos, shell scripts centos, centos script, running shell script centos, script login centos, centos shell scripts, centos shell login messages, executing shell script centos, centos create startup script, centos script sample, writing scripts centos, shell centos sample, centos create script, centos running shell scripts, small centos install

Om arbejdsgiveren:
( 5 bedømmelser ) Brasilia, Brazil

Projekt-ID: #311330

Tildelt til:

ozzik

Ready to start.

$30 USD in 0 dage
(29 bedømmelser)
5.0