bin bash script Ayuda
#1

Hola tengo un server en lunux y el GM a veces se me crashea he seguido el primer paso

checksamp.sh:
#!/bin/sh

PROCESS_COUNT=$(ps -fu root | grep samp03svr | grep -v grep | wc -l)
case $PROCESS_COUNT in
0) /path/to/samp03svr &
;;
1) #OK, program is already running once
;;
*) #OK, program is already multiple times
;;
esac

pero no se donde ponerlo ni como hacerlo funcionar para que cuando crashee en la madrugada se ponga online el server solo.

Alguien puede ayudar a este novato por favor?

Gracias !!!
Reply


Messages In This Thread
bin bash script Ayuda - by Lancelot2012 - 25.08.2012, 23:37
Re: bin bash script Ayuda - by Shiny_David - 26.08.2012, 00:34
Respuesta: bin bash script Ayuda - by Bu11Sh0t - 26.08.2012, 01:07
Respuesta: bin bash script Ayuda - by Vladeksh - 26.08.2012, 07:23

Forum Jump:


Users browsing this thread: 2 Guest(s)