Jump to content

Search the Community

Showing results for tags 'keepalive'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Sourceforge: https://sourceforge.net/projects/skbtforarma/ [RELEASE] Arma 2/3 Server Keepalive Batch Tool 1.2.2 I wrote this for our old A2 Epoch server in hopes of making a very simple and light-weight easy to use keepalive/restarter, it was very useful, thought I'd share with the public. This tool has developed on these forums considerably and now has many many more features that make administering and controlling your server much easier. Keepalive Status Window Keepalive GUI Keepalive GUI Configuration Properties Feature Archive: -Gui- ADDED IN 1.2.2: Higher core support for setting affinities (up to 100 cores O.O) ADDED IN 1.2.2: New status icons in config window for batch/server status ADDED IN 1.2.2: Added a new control bar in config window, to control keepalive/server -Core- ADDED IN 1.2.2: Added an exit batch check and new file to set this flag externally to close the keepalive. Auto start Database/Arma server and BEC if any one of them fails Logs events in real-time with a console display Easy configuration for any arma server (arma/arma 2/arma 3) Ability to Auto restart using BEC Scheduler (check readme for details) Ability to manually restart from an external program (eg, Web Service on same machine) Keepalive for the Keepalive (if batch crashes or something, it will keep running regardless) Auto log file rotation *added in 0.8.0 Auto Database Backup *added in 0.8.0 Ability to use 7zip to archive logs and/or database file *added in 0.8.0 Keep Arma Server Monitor active (Optional) (addon for arma 2/3) *added in 0.8.0 Keep Teamspeak Server Active (Optional) *added in 0.8.0 Database Interval, Minutes between DB Backups *added in 0.9.0 Ability to keep ASM server monitor alive. *added in 0.9.0 Ability to keep Teamspeak server alive. *added in 0.9.0 Log backup and db backup locations configurable *added in 0.9.0 Lets arma close nicely using #shutdown on automatic restarts (BEC Scheduler required) *added in 0.9.0 Manual Action Timeout configurable. (How long will it take you to upload new pbos?) *added in 0.9.0 Configuration settings for ASM logging capabilities. Check batch settings. *fixed in 0.9.1 Ability to configure another process to keep alive (such as a HC client or another server using a renamed exe file). *NEW IN 0.9.2 Project on Sourceforge and GitHub. *NEW IN 0.9.4 Crash Detection! Will force close any crashed processes! *NEW IN 0.9.4 Affinity and Priority settings! *NEW IN 0.9.4 Sleek GUI for managing and installing SKBT for multiple server on the same machine/network!*ADDED IN 1.0.0 Keepalive instance shortcuts to start menu and desktop. ADDED IN 1.0.1 Usage of parenthesis and spaces in path names fully! ADDED IN 1.0.3 Allow bec_flag_dsc parameter, (fix BEC auto closing due to no update signal). ADDED IN 1.0.3 Ability to change log detail level. Added in 1.1.0 Can forcefully delay between ONLY restart events 3 batch files in custom folder to aid in hooking code before certain events, more info inside those files (Check readme or more info) Tooltips to all configuration options Custom process tab! Keep any process you wish alive with your server (up to 100 extra processes!). ADDED IN 1.2.0 Heartbeat for external programs to know if the Keepalive is active. ADDED IN 1.2.0 Downloads: NOTE*: Please use the sourceforge/Github repositories to download. [LATEST RELEASE] DOWNLOAD 1.2.2 - GUI Installer tinyupload.com DOWNLOAD 1.2.2 - No Gui (Manual Install) tinyupload.com Mirrors on SourceForge / GitHub Development Snapshots available as standard. [OLDER RELEASES] For older releases please use the github/sourceforce release lists. *Latest Release: Please be advised the download links in this post are not the latest. SKBT was updated after the latest official release but do not fear! You do not need to build it! To download the latest binary of SKBT click here (sourceforge/skbtforarma/Master/Bin/Release/skbtInstaller_win32.exe) Check the commit logs on SF/GH for updates and changes. edit- Updated to 1.2.2.1 (Only on repo)
  2. Hello, here are my files on how I run my start/restart and how I monitor the server. There are better ways to do it, but this has worked for me for the last year. I had also shared this on the ALRPG forums, you might have seen it there as i see some familiar names here. Anyways, I use a folder called arma3serverconfig, not the one that EPOCH recommends, but all the same applies, its all about directory paths anyways In the folder where your battle and BEC are you'll want to create a few files. The first being restartserver.bat @echo off taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /f /fi "status eq not responding" /im arma3.exe taskkill /f /im arma3.exe timeout 1 taskkill /im Bec.exe taskkill /f /im cmd.exe /fi "windowtitle eq servermonitor.bat" timeout 2 echo Kill all instances for safety timeout 6 ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION set becpath="C:\arma3serverconfig\Bec\" cd /d %becpath% start "" /min "Bec.exe" -f Config.cfg timeout 1 echo Battleye has started.. timeout 1 echo Starting ARMA 3 Server... ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION cd C:\Games\ArmA3\A3Master timeout 1 start "arma3" /min /high "arma3server.exe" -port=2322 "-config=C:\arma3serverconfig\config.cfg" "-cfg=C:\arma3serverconfig\basic.cfg" "-profiles=C:\arma3serverconfig" -name=SC "[email protected];@EpochHive;@AllInArmaTerrainPackLite;" -world=empty -nosplash -noSound -noPause -enableHT -malloc=system timeout 5 echo ARMA 3 Server has started ::CHANGE THE DIRECTORY BELOW TO THE PROPER LOCATION set ServerMonitorPath="C:\arma3serverconfig\" cd /d %ServerMonitorPath% start "" "servermonitor.bat" echo Server Monitor has started. Have Fun timeout 3 exit Make sure you change your directory locations, then we need 3 more files servermonitor.bat ::Made by eRazeri - edited by [midgetgrimm] @echo off title servermonitor.bat :start C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop echo Server is not running, will be started now :: SET DIRECTORY TO PROPER LOCATION start "" /min /wait "C:\arma3serverconfig\restartserver.bat" timeout 30 echo Server started succesfully goto started :loop cls echo Server is already running, running monitoring loop :started :: THESE ARE WERFAULT AND TASK KILLS taskkill /f /im WerFault.exe /fi "WINDOWTITLE eq Arma 3" C:\Windows\System32\timeout /t 80 C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL if "%ERRORLEVEL%"=="0" goto loop goto start Again make sure to chagne your file locations and all that noise... 2 more to go next is stopserver.bat @echo off taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /f /fi "status eq not responding" /im arma3server.exe taskkill /f /im arma3server.exe timeout 1 taskkill /im Bec.exe timeout 3 exit Now this we need to call via BEC through the scheduler, so make sure you add a task in the scheduler.xml, like this, make sure you set correct filepath and how many hours until it runs <job id='8'> <day>1,2,3,4,5,6,7</day> <start>040000</start> <runtime>040000</runtime> <loop>0</loop> <cmd>C:\arma3serverconfig\stopserver.bat</cmd> </job> Now for the last is the log rotator. you can use the one Epoch kindly provides are use this rotate_logs.bat - I didn't write this one, but make sure you change and edit the file directory. @echo off :: Based off of Server Launch Script by r4z0r49 :: Script Modified and fixed by Sykotix - http://dayz.sykotix.com :: :: Usage: dayzsrv-log-rotater.bat servername :: Example 1 - Will update using default profile: dayzsrv-log-rotater.bat :: Example 2 - Will update using profile for US6: dayzsrv-log-rotater.bat US6 :::::::::::::: CONFIG :::::::::::::::::: :: Set your Arma2AO Base installation directory. LEAVE OFF THE ENDING \ set arma2srvpath=D: :: Set your Default server profile name. This is the name of the directory that stores your server.cfg :: This will be used in the case that you don't launch this script without the server param. :: Example: cfgdayz, US6, Chicago13, ect :: DEFAULTPROFILE set srvname=arma3serverconfig :: Delete Original log files after they have been rotated? This keeps your logs more organized and saves space. :: This will not work unless the server is stopped first. This option works best set to 1 when using FireDaemon's Pre/Post Service tab set deloriglogs=1 ::::::::::: ADVANCED CONFIG :::::::::::: :: Don't touch anything below this point unless you know what your doing. :: Setting Server Profile to Use IF "%1"=="" ( set servername=%srvname% ) else ( set servername=%1 ) TITLE DayZ %servername% Server Log Rotater :: Set Debug Mode set debug=0 :: Set Debug Timeout in seconds set dbsecs=10 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::: STOP EDITING :::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Display Debug output if %debug% == 1 ( echo Server Name = %servername% echo ArmaII Server Path = "%arma2srvpath%" timeout %dbsecs% ) :: Set Time and Date SET HOUR=%time:~0,2% SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%_%time:~6,2% SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%time:~6,2% ::Make Date Stamp if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%) ECHO Todays Date and time (%date%)(%time%) / %dtStamp% if %debug% == 1 ( timeout %dbsecs% ) echo (%date%) (%time%) Starting Log Rotation. :: Make the Rotated Log Directorys if exist "D:\arma3serverconfig\RotatedLogs" goto maketsdir mkdir "D:\arma3serverconfig\RotatedLogs" :maketsdir if exist "D:\arma3serverconfig\RotatedLogs\%dtStamp%" goto makebedir mkdir "D:\arma3serverconfig\RotatedLogs\%dtStamp%" :makebedir if exist "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye" goto rotatelogs mkdir "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye" :rotatelogs :: Starting Log Rotation. If there are any other logs, just follow the format below, and make sure to NOT touch any of the varibles. copy "%arma2srvpath%\%servername%\arma3server.RPT" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\arma3server.RPT" copy "%arma2srvpath%\%servername%\server_log.txt" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\server_log.txt" copy "%arma2srvpath%\%servername%\BattlEye\attachto.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\attachto.log" copy "%arma2srvpath%\%servername%\BattlEye\addbackpackcargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addbackpackcargo.log" copy "%arma2srvpath%\%servername%\BattlEye\addweaponcargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addweaponcargo.log" copy "%arma2srvpath%\%servername%\BattlEye\deletevehicle.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\deletevehicle.log" copy "%arma2srvpath%\%servername%\BattlEye\remotecontrol.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\remotecontrol.log" copy "%arma2srvpath%\%servername%\BattlEye\selectplayer.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\selectplayer.log" copy "%arma2srvpath%\%servername%\BattlEye\setvariableval.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setvariableval.log" copy "%arma2srvpath%\%servername%\BattlEye\teamswitch.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\teamswitch.log" copy "%arma2srvpath%\%servername%\BattlEye\waypointcondition.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\waypointcondition.log" copy "%arma2srvpath%\%servername%\BattlEye\waypointstatement.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\waypointstatement.log" copy "%arma2srvpath%\%servername%\BattlEye\scripts.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\scripts.log" copy "%arma2srvpath%\%servername%\BattlEye\createvehicle.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\createvehicle.log" copy "%arma2srvpath%\%servername%\BattlEye\mpeventhandler.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\mpeventhandler.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariable.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\publicvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\publicvariableval.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\publicvariableval.log" copy "%arma2srvpath%\%servername%\BattlEye\remoteexec.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\remoteexec.log" copy "%arma2srvpath%\%servername%\BattlEye\setdamage.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setdamage.log" copy "%arma2srvpath%\%servername%\BattlEye\setpos.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setpos.log" copy "%arma2srvpath%\%servername%\BattlEye\setvariable.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\setvariable.log" copy "%arma2srvpath%\%servername%\BattlEye\addmagazinecargo.log" "D:\arma3serverconfig\RotatedLogs\%dtStamp%\BattlEye\addmagazinecargo.log" echo (%date%) (%time%) Logs are backed up now... echo (%date%) (%time%) Removing original log files. del /Q /F "%arma2srvpath%\%servername%\arma3server.RPT" del /Q /F "%arma2srvpath%\%servername%\server_log.txt" del /Q /F "%arma2srvpath%\%servername%\BattlEye\attachto.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addbackpackcargo.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addweaponcargo.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\deletevehicle.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\remotecontrol.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\selectplayer.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setvariableval.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\teamswitch.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\waypointcondition.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\waypointstatement.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\scripts.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\createvehicle.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\mpeventhandler.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\publicvariable.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\publicvariableval.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\remoteexec.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setdamage.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setpos.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\setvariable.log" del /Q /F "%arma2srvpath%\%servername%\BattlEye\addmagazinecargo.log" if %debug% == 1 ( timeout %dbsecs% ) :: We're done here. exit This is what I use and it works well. I saw 2 others on here that are nice too, but it's always nice to have options. Cheers Then just run the restartserver.bat and you should see your logs rotate, then BEC starts, then A3 starts. Once all started that closes and starts the server monitor and just keeps in check until restart. Try to never shut down the database as it takes a few to finish syncing. Thanks, really loving epoch now, can't wait until it gets completely opened up!
×
×
  • Create New...