SmoothRestarter

Moved

Total Downloads: 5,594 - First Release: Apr 11, 2016 - Last Update: Dec 30, 2017

5/5, 22 likes
  1. The first entry is the starting time, the second the countdown time. The given examples there would restart at "12:00" and "0:00"
     
  2. Fujikura updated Smooth Restarter with a new update entry:

    1.0.2

     
  3. Fujikura updated Smooth Restarter with a new update entry:

    1.0.3

     
  4. does it save before a restart
     
  5. It calls the quit command, which includes also server.save
     
  6. Not quite sure what the point of changing the console command from srestart to sr.restart was?
     
  7. To mark down the old main command "srestart" more from the inbuilt "restart" ;)
     
  8. Does 'quit' also call server.wrtitecfg like 'restart' does?

    Also do I need to install another plugin for the SimpleUI popup to work. I have it set to SimpleUI_Enable = true and there are no player notifications... :(

    Thanks,
    TheDoc
     
  9. It calls this command:
    Code:
    ConVar.Global.quit(new ConsoleSystem.Arg(null));
    Which includes this:
    Code:
    SingletonComponent<ServerMgr>.Instance.Shutdown();
    Which runs this:
    Code:
    internal void Shutdown()
    {
        ...
        ConsoleSystem.Run.Server.Normal("server.save", new object[0]);
        ConsoleSystem.Run.Server.Normal("server.writecfg", new object[0]);
    }
    :)

    The SumpleUI is already inbuilt and should display the countdown when running.
    Does the countdown work by using chat when it counts down?
     
  10. Sweet, thanks for the info and quick response.

    And no the count down does not work when I do manual one either. I see it in the RCON but that's it.
    Not sure why... I just turned off the SimpleUI in the config so let's see if that works fine.

    My Versions: Oxide 2.0.2781 for Rust 1086.99 (1928)

    Code:
    This is from RCON logs:09:29 [Info] [SmoothRestart] Manual countdown will start at next full minute
    ...
    09:30 [Info] [SmoothRestart] Server will restart in 3 minutes!
    ...
    09:31 [Info] [SmoothRestart] Server will restart in 2 minutes!
    ...
    09:32 [Info] [SmoothRestart] Server will restart in 1 minutes!
    ..
    09:32 [Info] [SmoothRestart] Server will restart in 50 seconds!
    ..
    09:32 [Info] [SmoothRestart] Server will restart in 40 seconds!
    09:32 [Info] [SmoothRestart] Server will restart in 30 seconds!
    ...
    09:32 [Info] [SmoothRestart] Server will restart in 20 seconds!
    09:32 [Info] [SmoothRestart] Server will restart in 10 seconds!
    09:32 [Info] [SmoothRestart] Server will restart in 5 seconds!
    ..
    09:32 [Info] [SmoothRestart] Server will restart in 4 seconds!
    09:32 [Info] [SmoothRestart] Server will restart in 3 seconds!
    09:32 [Info] [SmoothRestart] Server will restart in 2 seconds!
    09:33 [Info] [SmoothRestart] Server will restart in 1 seconds!
    
     
  11. Update: It looks like the scheduled restarts are working fine, it's the manual one that didn't do this:
    upload_2016-12-5_14-44-21.png
     
  12. I'll check it again...
     
  13. French translation :

    {
    "RestartInit": "<color=orange>Le serveur va redémarrer dans <color=red>{0}</color> minutes !</color>",
    "RestartInitSec": "<color=orange>Le serveur va redémarrer dans <color=red>{0}</color> secondes !</color>",
    "RestartCancel": "<color=green>Redémarrage du serveur arrêté !</color>",
    "ManualInit": "<color=silver>Le compte a rebours manuel commencera a la prochain minute complete</color>",
    "ManualCancel": "<color=silver>Le compte a rebours manuel a été annulé</color>"
    }
     
  14. 1234566
     
    Last edited by a moderator: Dec 28, 2016
  15. Why my config dont work? (Auto restart)
    Code:
    {
      "Checks": {
        "autoRebootCountDown": 3,
        "checkIntervalMinutes": 5,
        "currentDevblog": 140,
        "currentOxideBuild": 2865,
        "enableAutoChecks": true,
        "enableAutoReboot": true,
        "notifyOnlineAdmins": true
      },
      "Settings": {
        "ShowMinutes": [
          60,
          45,
          30,
          15,
          10,
          5,
          4,
          3,
          2,
          1
        ],
        "ShowSeconds": [
          59,
          58,
          57,
          56,
          55,
          54,
          53,
          52,
          51,
          50,
          50,
          49,
          48,
          47,
          46,
          45,
          44,
          43,
          42,
          41,
          40,
          39,
          38,
          37,
          36,
          35,
          34,
          33,
          32,
          31,
          30,
          29,
          28,
          27,
          26,
          25,
          24,
          23,
          22,
          21,
          20,
          19,
          18,
          17,
          16,
          15,
          14,
          13,
          12,
          11,
          10,
          9,
          8,
          7,
          6,
          5,
          4,    
          3,
          2,
          1
        ]
      },
      "SimpleUI": {
        "SimpleUI_Enable": true,
        "SimpleUI_FontSize": 30,
        "SimpleUI_HideTimer": 10,
        "SimpleUI_Left": 0.1,
        "SimpleUI_MaxHeight": 0.05,
        "SimpleUI_MaxWidth": 0.8,
        "SimpleUI_Top": 0.1
      },
      "Timers": {
        "RebootTimes": {
          "8:00": "60" 
        },
        "useTimers": true
      }
    }
     
  16. Define plz "not work". Does it show the timer?
     
  17. Sorry for a noob question here. This will be my virgin wipe + update and I'm a bit curious about the procedure.

    So what I do is run this command:

    C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir c:\rustserver\ +app_update 258550 +quit
    pause

    and

    Extract the new oxide .zip,

    Do I do this while the server is running or do I need to shut it down first?

    How long after devlog is oxide update normally?
     
  18. Shut it down of course. You can't update files that are being used.
     
  19. That's what I initially thought. I couldn't be sure if files to be updated are just loaded at server start or actually in use while the server is running. The problem is I don't understand this part:

    "enableAutoReboot":false, // for automatic restart it both changes happend

    Why would you restart the server for update if you need to shut it down for update anyway? I feel really stupid right now.
     
  20. Reboot depends on if you have an automatic script for server restarts you did already started the server with.
    By this it can also be managed to update the server after shutdown, and does then start again.