Jump to content

phenim

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by phenim

  1. here is a good server monitor so a server starter and restarter if it is killed or crashes can also change the exe names to whatever program you want

    @echo off
    :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 monitored is not running, will be started now 
    start "" /wait "D:\Games\dedicated\arma3server.exe" -mod=@Epoch;@EpochHive; -config=D:\Games\dedicated\SC\config.cfg -port=2302 -profiles=SC -cfg=d:\gAMES\dedicated\SC\basic.cfg -name=SC
    echo Server started succesfully
    goto started
    :loop
    cls
    echo Server is already running, running monitoring loop
    :started
    C:\Windows\System32\timeout /t 10
    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
    
  2.  

     

    here a mine server monitors included so if somehting crashes will auto start back up

     

    stopserver.bat

     

    @echo off
    TIMEOUT 25
    tASKkill /im arma3server.exe
    
    
    
    
    Epoch.bat
    @echo off
    :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 monitored is not running, will be started now 
    start "" /wait "D:\Games\dedicated\arma3server.exe" -mod=@Epoch;@EpochHive; -config=D:\Games\dedicated\SC\config.cfg -port=2302 -profiles=SC -cfg=d:\gAMES\dedicated\SC\basic.cfg -name=SC
    echo Server started succesfully
    goto started
    :loop
    cls
    echo Server is already running, running monitoring loop
    :started
    C:\Windows\System32\timeout /t 10
    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
    
     
    and BEC.bat
     
    @echo off
    :start
    C:\Windows\System32\tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | C:\Windows\System32\find /I /N "Bec.exe">NUL
    if "%ERRORLEVEL%"=="0" goto loop
    echo Server monitored is not running, will be started now 
    start "" /wait "D:\Games\BEC\Bec.exe" -f config.cfg
    echo Server started succesfully
    goto started
    :loop
    cls
    echo Server is already running, running monitoring loop
    :started
    C:\Windows\System32\timeout /t 10
    C:\Windows\System32\tasklist /FI "IMAGENAME eq Bec.exe" 2>NUL | C:\Windows\System32\find /I /N "Bec.exe">NUL
    if "%ERRORLEVEL%"=="0" goto loop
    goto start
    
    

     

     

    just get your scheduler.xml to run the stop server .bat and the other batch files do the rest 

  3. ENSURE YOU KILL YOUR SERVER  i use a batch file like so 

     

    @echo off
    TIMEOUT 25
    tASKkill /im arma3server.exe
     
     
    and my batch to start the server is so
     
     
    @echo off
    :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 monitored is not running, will be started now 
    start "" /wait "D:\Games\dedicated\arma3server.exe" -mod=@Epoch;@EpochHive; -config=D:\Games\dedicated\SC\config.cfg -port=2302 -profiles=SC -cfg=d:\gAMES\dedicated\SC\basic.cfg -name=SC
    echo Server started succesfully
    goto started
    :loop
    cls
    echo Server is already running, running monitoring loop
    :started
    C:\Windows\System32\timeout /t 10
    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
     
     
    this also restarts server if it crashes
  4. Ok im just wondering if these errors in the redis server are normal

     

     

                    _._
               _.-``__ ''-._
          _.-``    `.  `_.  ''-._           Redis 2.8.12 (00000000/0) 64 bit
      .-`` .-```.  ```\/    _.,_ ''-._
     (    '      ,       .-`  | `,    )     Running in stand alone mode
     |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
     |    `-._   `._    /     _.-'    |     PID: 3828
      `-._    `-._  `-./  _.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |           http://redis.io
      `-._    `-._`-.__.-'_.-'    _.-'
     |`-._`-._    `-.__.-'    _.-'_.-'|
     |    `-._`-._        _.-'_.-'    |
      `-._    `-._`-.__.-'_.-'    _.-'
          `-._    `-.__.-'    _.-'
              `-._        _.-'
                  `-.__.-'
     
    [3828] 04 Dec 19:08:20.341 # Server started, Redis version 2.8.12
    [3828] 04 Dec 19:08:20.346 * DB loaded from disk: 0.005 seconds
    [3828] 04 Dec 19:08:20.346 * The server is now ready to accept connections on port 6379
    [3828] 04 Dec 19:19:19.694 * 10 changes in 300 seconds. Saving...
    [3828] 04 Dec 19:19:19.695 # BeginForkOperation: system error caught. error code=0x000005af, message=BeginFork
    Operation: VirtualProtect failed: unknown error
     
    [3828] 04 Dec 19:19:19.695 # Can't save in background: fork: Invalid argument
    [3828] 04 Dec 19:19:19.796 * 10 changes in 300 seconds. Saving...
    [3828] 04 Dec 19:19:19.796 # BeginForkOperation: system error caught. error code=0x000005af, message=BeginFork
    Operation: VirtualProtect failed: unknown error
     
    [3828] 04 Dec 19:19:19.796 # Can't save in background: fork: Invalid argument
    [3828] 04 Dec 19:19:19.897 * 10 changes in 300 seconds. Saving...
    [3828] 04 Dec 19:19:20.014 # fork operation complete
    [3828] 04 Dec 19:19:20.067 * Background saving terminated with success
     
×
×
  • Create New...