Jump to content

cyruz

Member
  • Content Count

    316
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by cyruz

  1. Is there a reason that you're not using a seperate file to launch with? Example below, just change the directories to suit your needs... #!/bin/bash # # armaserver: ArmA 2 Linux Dedicated Server Control Script # (c) 2010 BIStudio # ArmA 2 binary version must be 1.04 or later # ## ## slightly addapted by DaOarge for Arma3 ## #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= ARMA_DIR=/opt/arma3 CONFIG=server.cfg CFG=basic.cfg PROFILES=/opt/arma3/userconfig PORT=2302 PIDFILE=${ARMA_DIR}/${PORT}.pid RUNFILE=${ARMA_DIR}/${PORT}.run LOGFILE=${ARMA_DIR}/log.${PORT}.txt SERVER=${ARMA_DIR}/arma3server OTHERPARAMS="-cpucount=4 -maxMem=2047 -nosound -exthreads=1 -noCB" MODS=@CBA_A3\;@tmr_alt\;@a3mp #======================================================================= ulimit -c 1000000 case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting A3 server..." # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server nohup </dev/null >/dev/null $0 watchdog & ;; stop) echo "Stopping A3 server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate ArmA 2 server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi fi ;; status) if [ -f ${RUNFILE} ]; then echo "A3 server should be running..." else echo "A3 server not running check logfile..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "ArmA 2 directory: ${ARMA_DIR} " if [ -d ${ARMA_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) $0 stop $0 start ;; watchdog) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${ARMA_DIR} echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..." ${SERVER} >>${LOGFILE} 2>&1 -config=${CONFIG} -cfg=${CFG} -port=${PORT} -pid=${PIDFILE} -mod=${MODS} ${OTHERPARAMS} if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..." sleep 5s else echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating" fi done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac This still has some A2 stuff in it, not sure why as I didn't write it.
  2. First problem is formatting, should be mod=@cba_a3\;@tmr_alt
  3. Actually talking with some other admins they've run servers on 2012 without issues so maybe this is somehow limited to Hetzner boxes. That is an international test from Germany to the UK, I'd check your configs as those bandwidth numbers are way to low. Hetzner guarantees 200mbit minimum and you're on a 576Gbit internal network. Don't confuse MB/s and Mbit as 70 MB/s is way different than 70Mbit.
  4. Just to add to this, we've got the same problem with our Arma 2 server. Max SFPS is 46-48 empty. Specs as follows: Leased a new dedicated server from Hetzner Windows Server 2012 R2 i7 4770, 32Gig, SATA3, 500Mbit+ down 500Mbit+ up. (You sure you tested this right, it's 200Mbit guaranteed and I've never seen it dip below 350Mbit and thats probably the test server throttling it).
  5. cyruz

    TMR Modular Realism

    The creator of this mod has stopped development now so posting here won't help you. Its been forked by someone else who's continuing it forward, search the boards for the new thread.
×