Jump to content
GIGN Forum

Hltv Crash


Recommended Posts

Log faili tukši.. :/

EDIT: Es atstāju vaļā hltv konsoli puttyā (screen -r mans_hltv) un man vienkārši izmet [screen is terminating], kaut gan es neko nedarīju.. :@

EDIT: Atrisinājums uz linux :D

#! /bin/sh

srv1_name="mans_hltv"

srv1_fname="mans_hltv"

srv1_dirpath="/cs/serveris"

srv1_chk=`screen -ls | grep $srv1_name`

function srv1_started() {

if [[ -z $srv1_chk ]]; then

return 1

else

return 0

fi

}

function srv1_stop() {

srv1_started

if [ $? -eq 1 ]; then

return 1

fi

/usr/bin/screen -S $srv1_name -X quit >/dev/null 2>&1

return 0

}

function srv1_start() {

srv1_started

if [ $? -eq 0 ]; then

return 1

fi

cd $srv1_dirpath && screen -AmdS $srv1_name ./hltv_run

return 0

}

function srv1_echo() {

echo -n $2

$1

if [ $? -eq 0 ]; then

echo -e "\t\t[ OK ]"

else

echo -e "\t\t[FAIL]"

fi

return 0

}

case $1 in

start)

srv1_echo srv1_start "STARTING $srv1_fname: `basename $0` start"

;;

stop)

srv1_echo srv1_stop "STOPING $srv1_fname: `basename $0` stop"

;;

restart)

srv1_echo srv1_stop "STOPING $srv1_fname: `basename $0` stop"

srv1_echo srv1_start "STARTING $srv1_fname: `basename $0` start"

;;

*)

echo "Use Commands: `basename $0` start|stop|restart"

;;

esac

Un tad

/path/uz/sito/failu.sh start
Edited by KpC
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...