Advertisement
hurburd

Untitled

May 16th, 2017
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Arma3 Linux Server scheduled Restart Messages
  2.  
  3. 1. Download https://github.com/Nizarii/arma-rcon-class-php/releases
  4. 2. unpack the Archive to /PathtoArma3Folder/scheduler
  5. 3. create 10minutes.php, 5minutes.php and 1minute.php (or whatever you want) in /PathtoArma3Folder/scheduler with the following Content:
  6.  
  7. ---
  8.  
  9. <?php
  10. require_once 'arc.php';
  11. use \Nizarii\ARC;
  12.  
  13. $rcon = new ARC('127.0.0.1','BE-RCONPASSWORD',BE-RCONPORT)
  14. $rcon->sayGlobal('*** Server will restart in 10 Minutes ***');
  15. ?>
  16.  
  17. ---
  18.  
  19. Replace BE-RCONPASSWORD with your Battleye Rcon Password and BE-RCONPORT with your Battleye Rcon Port found in /PathtoArma3Folder/battleye/beserver.cfg.
  20.  
  21. 4. Create CronJobs:
  22.  
  23. 50 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/10minutes.php
  24. 55 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/5minutes.php
  25. 59 1,3,5,7,9,11,13,15,17,19,21,23 * * * php -q /PathtoArma3Folder/scheduler/1minutes.php
  26. 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /PathtoArma3Folder/restart.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement