-
Content Count
7 -
Joined
-
Last visited
-
Medals
Everything posted by Ajbboy
-
ArmA 2 OA Dedicated Server Restart Script? (Linux Debian 7.5)
Ajbboy posted a topic in ARMA 2 & OA - Servers & Administration
Hi, I've just finally launched a ArmA 2 OA Dedicated Server on my Linux Debian 7.5 Server Box, and the server is running perfectly. But I would like to find out if there is a Restart Script I could use. I know that there is one inside of the arma2oaserver file, but I'm not sure if it actually works, or how to make it function properly. This is the code of the arma2oaserver startup script that starts the server, along with a few other scripts, and what appears to be a Restart script in there maybe: ulimit -c 1000000 case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting ArmA 2 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 ArmA 2 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 "Server should be running..." else echo "Server should not be running..." 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 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} ${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 Thanks in Advance! - Ajb-
- Linux
- ArmA 2 Server Help
-
(and 2 more)
Tagged with:
-
ArmA 2 OA Dedicated Server Restart Script? (Linux Debian 7.5)
Ajbboy posted a topic in ARMA 2 & OA - QUESTIONS & ANSWERS
Thread moved to: https://forums.bistudio.com/topic/185831-arma-2-oa-dedicated-server-restart-script-linux-debian-75/-
- ArmA 2 OA Dedicated Server
- Auto Restart Script
- (and 4 more)
-
Nice, looks cool, I'll check it out with some friends when I get a chance.
-
MCC Sandbox 3 - Dynamic mission creating tool for ArmA 3
Ajbboy replied to shay_gman's topic in ARMA 3 - ADDONS & MODS: COMPLETE
This is by far my #1 Tools used in both ArmA 3 and ArmA 2, it is essential to me, and my friends. I use this to monitor and administrate and on-the-go-edit my missions on our Dedicated Servers. -
This looks and sounds amazing, I'll have to test it out with my friends when I get a chance. I wish this was for ArmA 2 as well, anyways keep up the good work!
-
Great work, looks awesome, I'll have to try it out one day with my friends!
-
Will my PC Run this? What CPU/GPU to get? What settings? System Specifications.
Ajbboy replied to Placebo's topic in ARMA 2 & OA - QUESTIONS & ANSWERS
That should be pretty good, you'll hopefully be getting an average ~30 fps.