Jump to content

RPG-X Server Setup Problems


  • You cannot reply to this topic

20 replies to this topic

#1 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 16 July 2012 - 02:23 PM

Hi Guys,

I've got a Linux Server, and I'm having problems creating the start script. Anyone got a template that I can use?

Thanks

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#2 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 27 July 2012 - 11:07 PM

Here you go ...

Requirements:
  • screen has to be installed on server (should be already on most servers)
  • one of the following editors has to be installed: vi, nano, or pico
You only should have to edit the variables at the top of the script.

#! /bin/bash
# Authors: Christian Vad, Walter Julius Hennecke
# Feel free to use this script or a modified version of this script.
# You may redistribute this script or a modified version of it as
# long as this message and the names of the authors remain in this file.
# location of start script
SCRIPT_PATH=/home/gamesrv/bin
# Where are the files located and params for starting server
# short name (also name of the used screen)
SRV_NAME=sgtls
# server description
SRV_DESC="SG TLS Server"
# start parameters
SRV_PARMS="-console -game sgtls -tickrate 66 +maxplayers 32 +map tls_atlantistest_a2 +exec server.cfg -autoupdate +sv_pure 0"
# server directory
SRV_DIR=/home/gamesrv/games/sgtls/orangebox
# binary name
SRV_BIN=srcds_run
SRV_DAEMON=$SRV_DIR/$SRV_BIN
# Where should be LOG-File and PID-File located?
LOG_FILE=$SCRIPT_PATH/log/$SRV_NAME.log
PID_FILE=$SCRIPT_PATH/pid/$SRV_NAME.pid
# CFGs and other editable files
STARTSCRIPT=$SCRIPT_PATH/$SRV_NAME
CFG_A=$SRV_DIR/
# You can use mysql for logging by uncommenting the mysql lines
# MySQL access data for logging
SQL_USER=''
SQL_PASS=''
SQL_DB=''
SQL_TBL=''
EDITOR=
TIMESTAMP=`date "+%s"`
# NO MORE EDITS FROM NOW ON
# Initializing functions
function GREP_PID()
{
echo `screen -ls |grep $SRV_NAME |awk -F . '{print $1}'|awk '{print $1}'`
return
}
function START_SERVER()
{
echo -n "Starting $SRV_DESC: $SRV_NAME "
cd $SRV_DIR
screen -d -m -S $SRV_NAME ./$SRV_BIN $SRV_PARMS
for A in $(seq 1 10); do
  if [[ ! `screen -ls |grep $SRV_NAME` ]]; then
   echo -e "\033[1;31m. \033[0m\c"
   SRV_FAIL=true
  fi
  if [[ `screen -ls |grep $SRV_NAME` ]]; then
   echo -e "\033[1;32m. \033[0m\c"
   SRV_FAIL=false
  fi
  sleep 1
done
GREP_PID > $PID_FILE
return
}
function STOP_SERVER()
{
echo -n "Stoping $SRV_DESC: $SRV_NAME "
kill `cat $PID_FILE`
for A in $(seq 1 10); do
  echo -n ". "
  sleep 0.05
done
return
}
function LOG_MESSAGE()
{
if [[ $USER_COMMAND = "start" ]]; then
  if [[ $SRV_FAIL = true ]]; then
   echo "Offline (PID: N/A) {start} [FAILED]" >> $LOG_FILE
   echo "Message: $MSG" >> $LOG_FILE
   echo -e "Hint: $HINT" >> $LOG_FILE
   echo "On: `date`" >> $LOG_FILE
   echo "By: $USER_NAME" >> $LOG_FILE
   echo "############################" >> $LOG_FILE
   #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
  elif [[ $SRV_FAIL = false ]]; then
   echo "Online (PID: `cat $PID_FILE`) {start}" >> $LOG_FILE
   echo "Message: $MSG" >> $LOG_FILE
   echo -e "Hint: $HINT" >> $LOG_FILE
   echo "On: `date`" >> $LOG_FILE
   echo "By: $USER_NAME" >> $LOG_FILE
   echo "############################" >> $LOG_FILE
   #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',1,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
  fi
elif [[ $USER_COMMAND = "stop" ]]; then
  if [[ $SRV_FAIL = true ]]; then
   echo "Offline (PID: N/A) {stop} [FAILED]" >> $LOG_FILE
   echo "Message: $MSG" >> $LOG_FILE
   echo -e "Hint: $HINT" >> $LOG_FILE
   echo "On: `date`" >> $LOG_FILE
   echo "By: $USER_NAME" >> $LOG_FILE
   echo "############################" >> $LOG_FILE
   #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
  elif [[ $SRV_FAIL = false ]]; then
   echo "Offline (PID: N/A) {stop}" >> $LOG_FILE
   echo "Message: $MSG" >> $LOG_FILE
   echo -e "Hint: $HINT" >> $LOG_FILE
   echo "On: `date`" >> $LOG_FILE
   echo "By: $USER_NAME" >> $LOG_FILE
   echo "############################" >> $LOG_FILE
   #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
  fi
elif [[ $USER_COMMAND = "restart" ]]; then
  if [[ $SUB_ACT = "stop" ]]; then
   if [[ $SRV_FAIL = true ]]; then
    echo "Offline (PID: N/A) {restart->stop} [FAILED]" >> $LOG_FILE
    echo "Message: $MSG" >> $LOG_FILE
    echo -e "Hint: $HINT" >> $LOG_FILE
    echo "On: `date`" >> $LOG_FILE
    echo "By: $USER_NAME" >> $LOG_FILE
    echo "############################" >> $LOG_FILE
    #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
   elif [[ $SRV_FAIL = false ]]; then
    echo "Offline (PID: N/A) {restart->stop}" >> $LOG_FILE
    echo "Message: $MSG" >> $LOG_FILE
    echo -e "Hint: $HINT" >> $LOG_FILE
    echo "On: `date`" >> $LOG_FILE
    echo "By: $USER_NAME" >> $LOG_FILE
    echo "############################" >> $LOG_FILE
    #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
   fi
  elif [[ $SUB_ACT = "start" ]]; then
   if [[ $SRV_FAIL = true ]]; then
    echo "Offline (PID: N/A) {restart->start} [FAILED]" >> $LOG_FILE
    echo "Message: $MSG" >> $LOG_FILE
    echo -e "Hint: $HINT" >> $LOG_FILE
    echo "On: `date`" >> $LOG_FILE
    echo "By: $USER_NAME" >> $LOG_FILE
    echo "############################"
    #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',0,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
   elif [[ $SRV_FAIL = false ]]; then
    echo "Online (PID: `cat $PID_FILE`) {restart->start}" >> $LOG_FILE
    echo "Message: $MSG" >> $LOG_FILE
    echo -e "Hint: $HINT" >> $LOG_FILE
    echo "On: `date`" >> $LOG_FILE
    echo "By: $USER_NAME" >> $LOG_FILE
    echo "############################" >> $LOG_FILE
    #`mysql -p$SQL_PASS -u $SQL_USER -D $SQL_DB --execute="insert into $SQL_TBL (server_name,status,command,message,date,user) values ('$SRV_NAME',1,'$USER_COMMAND','$MSG','$TIMESTAMP','$USER_NAME')";`
   fi
  fi
fi
return
}
# Initialize Main Script
echo ""
printf "Command: "; read USER_COMMAND
if [[ $USER_COMMAND = "start" ]]; then
printf "Username: "; read USER_NAME
if [[ -e $PID_FILE ]]; then
  echo "$PID_FILE already exists ... server already running?"
  echo "If you are sure it isn't running delte the PID file: $PID_FILE"
  MSG="PID-File already exists. Server already online?"
  HINT="N/A"
  SRV_FAIL=true
  exit 1
else
  if [[ $UID = 0 ]]; then
   echo -n "WARNING! DUE TO SECURITY REASONS IT IS SUGGEST NOT TO RUN THE SERVER AS ROOT!"
   for A in $(seq 1 9); do
    echo -n "!"
    sleep 1
   done
   echo "!"
   MSG="***SECURITY RISK***"
   HINT="WARNING! SERVER WAS STARTED AS ROOT!!!"
  fi
  if [[ -e $SRV_DAEMON ]]; then
   if [[ ! -x $SRV_DAEMON ]]; then
    echo "$SRV_BIN not executeable, please fix this ..."
    chmod u+x $SRV_DAEMON
   fi
   if [[ -x $SRV_DAEMON ]]; then
    START_SERVER
    if [[ $SRV_FAIL = true ]]; then
	 echo -e "\033[1;31mFailed\033[0m"
	 MSG="Unknown error"
	 HINT="Run the following to test:\ncd $SRV_PATH\n./$SRV_BIN $SRV_PARMS"
    elif [[ $SRV_FAIL = false ]]; then
	 echo -e "\033[1;32mDone\033[0m"
	 MSG="N/A"
	 HINT="N/A"
    fi
   elif [[ ! -x $SRV_DAEMON ]]; then
    echo "$SRV_BIN not executeable, please fix this ..."
    MSG="$SRV_BIN not executeable! FIX IT!"
    HINT="N/A"
    SRV_FAIL=true
   fi
  elif [[ ! -e $SRV_DAEMON ]]; then
   echo "$SRV_DAEMON not found"
   MSG="$SRV_DAEMON not found"
   HINT="Please check variables SRV_DIR and SRV_BIN"
   SRV_FAIL=true
  fi
fi
LOG_MESSAGE
elif [[ $USER_COMMAND = "stop" ]]; then
printf "Username: "; read USER_NAME
if [[ -e $PID_FILE ]]; then
  if [[ `screen -ls |grep $SRV_NAME` ]]; then
   STOP_SERVER
   echo -e "\033[1;32mDone\033[0m"
   MSG="N/A"
   HINT="N/A"
   SRV_FAIL=false
   rm $PID_FILE
  fi
else
  if [[ -e $PID_FILE ]]; then
   echo "Could not find a server with this PID -- `cat $PID_FILE` --"
   rm $PID_FILE
   MSG="Server is already offline."
   HINT="PID-Datei already there. Possible cause: server crash"
   SRV_FAIL=true
  else
   echo "Could not find a screen with name -- $SRV_NAME --"
   MSG="Server is already offline"
   HINT="You can use the command -- check -- to check the state of the server"
   SRV_FAIL=true
  fi
fi
LOG_MESSAGE
elif [[ $USER_COMMAND = "restart" ]]; then
printf "Username: "; read USER_NAME
if [[ `screen -ls |grep $SRV_NAME` ]]; then
  STOP_SERVER
  echo -e "\033[1;32mDone\033[0m"
  MSG="N/A"
  HINT="N/A"
  SRV_FAIL=false
else
  if [[ -e $PID_FILE ]]; then
   echo "Could not find a server with  PID -- `cat $PID_FILE` --"
   rm $PID_FILE
   MSG="Server is already offline."
   HINT="PID-Datei already there. Possible cause: server crash"
   SRV_FAIL=true
   SUB_ACT="stop"
  else
   echo "Could not find a screen with name -- $SRV_NAME --"
   MSG="Server already offline"
   HINT="You can use the command -- check -- to check the state of the server"
   SRV_FAIL=true
   SUB_ACT="stop"
  fi
fi
LOG_MESSAGE
START_SERVER
if [[ $SRV_FAIL = true ]]; then
  echo -e "\033[1;31mFailed\033[0m"
  MSG="Unknown Error"
  HINT="Run the following command to test:\ncd $SRV_PATH\n./$SRV_BIN $SRV_PARMS"
  SUB_ACT="start"
elif [[ $SRV_FAIL = false ]]; then
  echo -e "\033[1;32mDone\033[0m"
  MSG="N/A"
  HINT="N/A"
  SUB_ACT="start"
fi
LOG_MESSAGE
elif [[ $USER_COMMAND = "check" ]]; then
if [[ -e $PID_FILE ]]; then
  if [[ `screen -ls |grep $SRV_NAME` ]]; then
   echo "$SRV_DESC: $SRV_NAME ist Online"
  else
   echo "Could not find a server with PID -- `cat $PID_FILE` --"
   rm $PID_FILE
  fi
else
  echo "Could not find active screen with name -- $SRV_NAME --"
  echo "Should the server be started?"
  echo "1 - Yes"
  echo "2 - No"
  printf "Selection: "; read USER_INPUT
  if [[ $USER_INPUT = 1 ]]; then
   USER_COMMAND="start"
   START_SERVER
   if [[ $SRV_FAIL = true ]]; then
    echo -e "\033[1;31mFailed\033[0m"
    MSG="Unknown Error"
    HINT="N/A"
    SRV_FAIL=true
   elif [[ $SRV_FAIL = false ]]; then
    echo -e "\033[1;32mDone\033[0m"
    MSG="N/A"
    HINT="N/A"
    SRV_FAIL=false
   fi
  elif [[ $USER_INPUT = 2 ]]; then
   exit 0
  fi
fi
elif [[ $USER_COMMAND = "screen" ]]; then
screen -x $SRV_NAME
elif [[ $USER_COMMAND = "edit" ]]; then
echo "Which file should be edited?"
echo "1 - Startscript ($STARTSCRIPT)"
echo "2 - Server CFG ($CFG_A)"
printf "Selection: "; read USER_INPUT
echo "Which editor to use?"
echo "1 - pico"
echo "2 - nano"
echo "3 - vi"
printf "Selection: "; read USER_EDITOR
if [[ USER_INPUT = 1 ]]; then
  echo 1
  if [[ USER_EDITOR = 1 ]]; then
   pico "$STARTSCRIPT"
   echo 1
  elif [[ USER_EDITOR = 2 ]]; then
   nano "$STARTSCRIPT"
  elif [[ USER_EDITOR = 3 ]]; then
   vi "$STARTSCRIPT"
  fi
elif [[ USER_INPUT = 2 ]]; then
  if [[ USER_EDITOR = 1 ]]; then
   pico "$CFG_A"
  elif [[ USER_EDITOR = 2 ]]; then
   nano "$CFG_A"
  elif [[ USER_EDITOR = 3 ]]; then
   vi "$CFG_A"
  fi
fi
elif [[ $USER_COMMAND = "showlog" ]]; then
pico $LOG_FILE
elif [[ $USER_COMMAND = "clearlog" ]]; then
printf "Username: "; read USER_NAME
echo "Log cleanup" > $LOG_FILE
echo "On: `date`" >> $LOG_FILE
echo "By: $USER_NAME" >> $LOG_FILE
echo "############################" >> $LOG_FILE
echo "Log cleanup"
fi


#3 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 28 July 2012 - 07:13 PM

Okay, I get this error:

root@li504-145:/home/ef/27960# ./start.sh
Command: start
Username: root
WARNING! DUE TO SECURITY REASONS IT IS SUGGEST NOT TO RUN THE SERVER AS ROOT!!!!																						!!!!!!!
/home/gamesrv/games/sgtls/orangebox/srcds_run not found
./start.sh: line 74: /home/ef/27960//log/sgtls.log: No such file or directory
./start.sh: line 75: /home/ef/27960//log/sgtls.log: No such file or directory
./start.sh: line 76: /home/ef/27960//log/sgtls.log: No such file or directory
./start.sh: line 77: /home/ef/27960//log/sgtls.log: No such file or directory
./start.sh: line 78: /home/ef/27960//log/sgtls.log: No such file or directory
./start.sh: line 79: /home/ef/27960//log/sgtls.log: No such file or directory
root@li504-145:/home/ef/27960#

I have installed the text editor, but i haven't done anything about the screen, because you mentioned that it would already be installed.

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#4 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 28 July 2012 - 07:30 PM

I've done some editing, and now i get this error instead:

Command: start
Username: ioef
/home/ef/27960/srcds_run not found
./start.sh: line 74: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 75: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 76: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 77: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 78: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 79: /home/ef/27960/log/sgtls.log: No such file or directory
ioef@li504-145:~/27960$

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#5 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 28 July 2012 - 07:39 PM

Well it should be obvious that the binary file of the EF Server is not srcds_run which is the binary of source dedicated server. You have to set SRV_BIN accordingly.

#6 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 28 July 2012 - 10:10 PM

Okay, I edited that, but it's still not working :(

Command: start
Username: ioef
/home/ef/27960/iostvefded-1.37.x86_64 not found
./start.sh: line 74: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 75: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 76: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 77: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 78: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 79: /home/ef/27960/log/sgtls.log: No such file or directory
ioef@li504-145:~/27960$ ./start.sh
Command: start
Username: ioef
/home/ef/27960/iostvefded-1.37.i386 not found
./start.sh: line 74: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 75: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 76: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 77: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 78: /home/ef/27960/log/sgtls.log: No such file or directory
./start.sh: line 79: /home/ef/27960/log/sgtls.log: No such file or directory
ioef@li504-145:~/27960$

Both 64 bit and 32 bit

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#7 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 28 July 2012 - 11:43 PM

# make the dir 27960 if it does not exist
mkdir /home/ef/27960
# make the log dir
mkdir /home/ef/27960/log
# create a the log file
touch /home/ef/27960/log/sgtls.log
You might want to rename the log as well though.

#8 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 29 July 2012 - 09:53 PM

Okay, done.

Now it's saying something about the "pid"? Any ideas?

Thanks

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#9 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 30 July 2012 - 10:01 AM

Same as before and same commands used:
  • If the folders don't exist create them.
  • Create the pid file.


#10 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 30 July 2012 - 11:39 AM

Awesome! :) Thanks. Just realised that some files were missing. Now uploading them to the server.

Thanks for the help :)

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#11 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 30 July 2012 - 11:53 AM

Okay, New Problem.

The server is online and everything, but it's not appearing in the server list. All the files are there now.

Any ideas?

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#12 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 31 July 2012 - 06:25 AM

Wait a bit it may take a while.
You may have to be connected manual one time so the server is on the master list.
Make sure dedicated is set to the correct value.
Make sure the master you are using is set as one of the sv_master.

#13 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 31 July 2012 - 11:39 AM

Okay, I don't think i've got the start.sh script done properly. Here is the opening section lines 1-27

#! /bin/bash
# Authors: Christian Vad, Walter Julius Hennecke
# Feel free to use this script or a modified version of this script.
# You may redistribute this script or a modified version of it as
# long as this message and the names of the authors remain in this file.
# location of start script
SCRIPT_PATH=/home/ef/27960
# Where are the files located and params for starting server
# short name (also name of the used screen)
SRV_NAME=ioef
# server description
SRV_DESC="ioef"
# start parameters
SRV_PARMS="-console -game RPG-X2 -tickrate 66 +maxplayers 32 +exec server.cfg -autoupdate +sv_pure 0 +server_port=27960 +server_dedicated=2 +rcon_password=****** +server_ip=***.***.***.*** server_vm=+set fs_game RPG-X2 +set dedicated 2s"
# server directory
SRV_DIR=/home/ef/27960
# binary name
SRV_BIN=iostvefded-1.37.i386
SRV_DAEMON=$SRV_DIR/$SRV_BIN
# Where should be LOG-File and PID-File located?
LOG_FILE=$SCRIPT_PATH/log/$SRV_NAME.log
PID_FILE=$SCRIPT_PATH/pid/$SRV_NAME.pid
# CFGs and other editable files
STARTSCRIPT=$SCRIPT_PATH/$SRV_NAME
CFG_A=$SRV_DIR/
# You can use mysql for logging by uncommenting the mysql lines
# MySQL access data for logging

Is this right? And I can't connect the server either via direct server, or via the master list.

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#14 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 31 July 2012 - 02:31 PM

No. You have to use EF server parms for SRV_PARMS ... editing the ones that were in the example wont do it as the script was taken from a server of a Source Engine game.
SRV_PARMS="+exec server.cfg +set sv_pure 0 +set net_port 27960 +set dedicated 2 +set rcon_password paswd +set fs_game RPG-X2 +set sv_maxclients 32"
No need to set the IP unless your server has multiple (if you have to it would be +set net_ip).

Note: I removed rcon password and ip from your post due to security reasons.

#15 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 31 July 2012 - 03:48 PM

YES! It's online!

Now, a quick question, what's the command to see the screen? So like I can see all that's happening via putty and also talk to the server via the console. I can't remember it. :/

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#16 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 31 July 2012 - 09:29 PM

screen -r screenname
# where screenname is the name of the screen
To detach the screen again press [Ctrl]+[a]+[d].

#17 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 31 July 2012 - 09:36 PM

Cheers Thanks

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#18 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 31 July 2012 - 09:41 PM

Okay, Next question. How can I set up a log saving system. So everyday say at 3:00am GMT it saves the log into a file, and the clears the old one. Any idea?

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9


#19 GSIO01

GSIO01

    UberGames Developer

  • UberGames Developer
  • 1,021 posts

Posted 01 August 2012 - 10:25 AM

Here is a simple bash script that should do the job. Just edit the paths and filename to your needs.
#!/bin/bash
# A simple log backup script.
# Written by Walter Julius Hennecke

LOG_PATH=./logs/
LOG_NAME=test.log
TARGET_DIR=./backup/
TIME=`date +"%m-%d-%y_%T"`
LOG_BACKUP=$LOG_NAME"_"$TIME
cp $LOG_PATH/$LOG_NAME $TARGET_DIR/$LOG_BACKUP
rm $LOG_PATH/$LOG_NAME
touch $LOG_PATH/$LOG_NAME

There are diffrent ways to run this script on a specific intervall. For example you could install a cron job. Google for crontab and you'll find many excellent examples/howtos.

#20 Richard Evans

Richard Evans

    {S31} Admirals' Team

  • Members
  • 172 posts

Posted 02 August 2012 - 01:38 PM

What do I save this file as? Like ioef.bash? or what? Thanks

follow.png

 

Richard Evans

Risa - The Star Trek Social Media Website

http://goo.gl/gJsMU9




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users