Jump to content
  • 0

auto restart


Gr8

Question

Auto Restarts not working, i am using the latest version of BEC. ANd the messages are working. Just not the last job as executing the file.

 

Schedular.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>

    
    <job id='0'>
        <day>1,2,3,4,5,6,7</day>
        <start>001500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Donation Perks Available at GhostzGamerz.com</cmd>
    </job>
    
    <job id='1'>
        <day>1,2,3,4,5,6,7</day>
        <start>020000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 1 HOUR </cmd>
    </job>
    
    <job id='2'>
        <day>1,2,3,4,5,6,7</day>
        <start>023000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 30 MIN</cmd>
    </job>
    
    <job id='3'>
        <day>1,2,3,4,5,6,7</day>
        <start>024500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 15 MIN</cmd>
    </job>
    
    <job id='4'>
        <day>1,2,3,4,5,6,7</day>
        <start>025000</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 10 MIN</cmd>
    </job>
    
    <job id='5'>
        <day>1,2,3,4,5,6,7</day>
        <start>025500</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 5 MIN</cmd>
    </job>
    
    <job id='6'>
        <day>1,2,3,4,5,6,7</day>
        <start>025600</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 4 MIN</cmd>
    </job>
    
    <job id='7'>
        <day>1,2,3,4,5,6,7</day>
        <start>025700</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 3 MIN</cmd>
    </job>
    
    <job id='8'>
        <day>1,2,3,4,5,6,7</day>
        <start>025800</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 2 MIN</cmd>
    </job>
    
    <job id='9'>
        <day>1,2,3,4,5,6,7</day>
        <start>025900</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting in 1 MIN (log off now to prevent loosing your gear)</cmd>
    </job>
    
    <job id='10'>
        <day>1,2,3,4,5,6,7</day>
        <start>025930</start>
        <runtime>000000</runtime>
        <loop>0</loop>
        <cmd>say -1 Restarting Now....</cmd>
    </job>
    
    <job id='11'>
        <day>1,2,3,4,5,6,7</day>
        <start>030000</start>
        <runtime>030000</runtime>
        <loop>0</loop>
        <cmd>C:\Arma Servers\@Run_Servers.bat</cmd>
    </job>

    
</Scheduler>

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

@echo off
echo Updating SVN
CD C:\Program Files\TortoiseSVN\bin\
START TortoiseProc.exe /command:update /path:"C:\Users\Administrator\Desktop\GHOSTZ GAMERZ\" /closeonend:0
echo.
timeout 10
echo.
echo KILL arma2oaserver.exe
set serverkill="C:\Arma Servers"
cd /d %serverkill%
taskkill /im arma2oaserver.exe
echo.
echo Kill Bec.exe
set beckill="C:\Arma Servers\BEC"
cd /d %beckill%
taskkill /im Bec.exe
timeout 3
echo.
@REM *** PARAMETERS/VARIABLES ***
SET BackupDir="C:\Arma Servers\backups"
SET mysqldir="C:\xampp\mysql\bin\"
SET mysqlschema=*****
SET mysqlpassword=****
SET mysqluser=dedi
SET housekeepafter=5
SET datestamp=%date:~-10,2%-%date:~-7,2%-%date:~-4,4%_%time:~0,2%.%time:~3,2%.%time:~6,2%
@REM *** EXECUTION ***
@REM Change to mysqldir
c:
cd %mysqldir%
@REM dump/backup ALL database, this is all in one line
mysqldump -u %mysqluser% -p%mysqlpassword% --databases %mysqlschema% >%BackupDir%\%mysqlschema%_backup.%datestamp%.sql
@REM - Housekeeping
forfiles -p %BackupDir% -s -m *.sql -d -%housekeepafter% -c "cmd /c del @path"
echo.

echo Starting Log Rotator
timeout 3
:: start Log Log Rotator
set logpath="C:\Arma Servers\instance_11_Chernarus"
cd /d %logpath%
start rotate_logs.bat
echo.
echo Copying server.pbo files --------------
copy /y "C:\Users\Administrator\Desktop\GHOSTZ GAMERZ\dayz\dayz_server.pbo" "C:\Arma Servers\@DayZ_Epoch_Server\addons\dayz_server.pbo"
ping 127.0.0.1 -n 1 >NUL
echo.
echo Copying mission.pbo files ----------------
copy /y "C:\Users\Administrator\Desktop\GHOSTZ GAMERZ\dayz\DayZ_GG.Chernarus.pbo" "C:\Arma Servers\MPMissions\DayZ_GG.Chernarus.pbo"
ping 127.0.0.1 -n 1 >NUL
echo.
echo.
echo Starting Bec
timeout 3
:: start bec
set becpath="C:\Arma Servers\BEC"
cd /d %becpath%
start "" "Bec.exe" -f Config.cfg
echo.
echo Starting Dayz Server
timeout 3
:: start the server..
start "arma2" /min "C:\Arma Servers\arma2oaserver.exe" -port=3302 "-config=instance_11_Chernarus\config.cfg" "-cfg=instance_11_Chernarus\basic.cfg" "-profiles=instance_11_Chernarus" -name=instance_11_Chernarus "-mod=@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;"
echo.
timeout 20
taskkill /im TortoiseProc.exe
echo Server Started 100%

cls
@exit

Link to comment
Share on other sites

  • 0

awesome work grave.But I like to manually customize my files.

You can completely change my scheduler.xml from the installer it is mainly there just to help people get started and to show how proper syntax for bec 1.62 should be set up. BEC updated how things are configured in their files in the last update so what worked before will just error out now. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...