AutoRestart documentation page
If your server is managed by Multicraft control panel , restart won't occur.
Note: by default AutoRestart is disabled.
Note: When server is restarting the old server instance is not yet closed so you should have maxservermem*2 memory available in the system to restart properly. (You may want to increase your swap size on linux)
AutoRestart will automatically restart your server at a defined time.
Command
/asw restart (performs a restart manually)
Permission: autosaveworld.restart
Config values: (config.yml)
enabled: false #enable or disable AutoRestart broadcast: true #broadcast message about server is restarting time: []#List of times of day at which server will AutoRestart in format HH:MM example at the end of a page countdown: enabled: true #enable countdow before AutoRestart(will write messages about restart is soon in chat) broadcastonsecond: #list of seconds before restart to broadcast about server restarting soon. - 60 - 30 - 10 - 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 commands: [] #list of commands to execute before the restart will occur scriptpath: start.sh #path to your server startup script, even if AutoSaveWorld won't find, it it will still try to restart server. juststop: false #if true AutoRestart will just stop server instead of restart(useful for infinite loop script)
restarttime expample
time: - '03:20' - '16:24' - '20:03'
-
View User Profile
-
Send Message
Posted Aug 8, 2014With the script path do you just mean the Name (run.bat) Or the whole path? Because the scriptpath in the config always disappears During the restart and it tells me path not found... Sometimes it works but nothing appears in the console Anybody know solution? Help!
-
View User Profile
-
Send Message
Posted Aug 15, 2014@Marvin489
Whole path.
-
View User Profile
-
Send Message
Posted Aug 19, 2014Anything wrong with this config? I want to restart at midnight and every 4 hours thereafter. The server shuts down but doesn't restart. My batch file has a basic startup and works when executed by itself.
autorestart:
enabled: true
broadcast: true
time:
- '00:00'
- '04:00'
- '08:00'
- '12:00'
- '16:00'
- '20:00'
countdown:
enabled: true
broadcastonsecond:
- 60
- 30
- 10
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
scriptpath: 'C:\ATL\Servers\BevosTechPack_17106FULL\Cauldron.bat'
juststop: false
-
View User Profile
-
Send Message
Posted Aug 19, 2014@mniccum Pay attention to the notes, you don't have enough memory to start new server instance probably
-
View User Profile
-
Send Message
Posted Jan 5, 2015Does it work for Windows? Because on my Windows root the Server restarts but the console doesn't Close.... Please help
-
View User Profile
-
Send Message
Posted Mar 15, 2015@Shevchikden
What means this "maxservermem*2 " 2gb of ram?
Thanks
-
View User Profile
-
Send Message
Posted Apr 2, 2015@galaipa It means multiply by 2.
-
View User Profile
-
Send Message
Posted Nov 8, 2015Seeming as the plugin doesn't automatically save before a restart, is the following config allright for forcing a save before a restart?:
-
View User Profile
-
Send Message
Posted Mar 4, 2016Help me out above ^
-
View User Profile
-
Send Message
Posted Mar 4, 2016Question is this correct:
autorestart:
enabled: true
broadcast: true
time:
- '12:00'
- '16:00'
- '20:00'
- '24:00'
- '04:00'
countdown:
enabled: true
broadcastonsecond:
- 60
- 30
- 10
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
commands: /save-all
scriptpath: 'ftp://mine62813@94.23.53.114/craftbukkit-1.9-R0.1.jar'
juststop: false
As I have host and thats the scriptpath I got from copying the craftbukkit url in ftp. It does not seem to work.
[AutoSaveWorld] Startup script not found. Restarting without it. This may work strange or not work at all
How the heck this is supposed to work?
-
View User Profile
-
Send Message
Posted Dec 9, 2016You put this in the documentation?
Note: When server is restarting the old server instance is not yet closed so you should have maxservermem*2 memory available in the system to restart properly. (You may want to increase your swap size on linux)
Where exactly should the maxservermem*2 be placed?
-
View User Profile
-
Send Message
Posted Sep 5, 2021I am hosting windows and if my server crashes it wont auto restart.
Ive been using /asw restart to test the restart function but this happens
[18:45:03 INFO]: Chickn_SG issued server command: /asw restart
[18:45:21 INFO]: Chickn_SG issued server command: /tps
[18:45:26 INFO]: Server will restart in 60 seconds
[18:45:56 INFO]: Server will restart in 30 seconds
[18:46:16 INFO]: Server will restart in 10 seconds
[18:46:17 INFO]: Server will restart in 9 seconds
[18:46:18 INFO]: Server will restart in 8 seconds
[18:46:19 INFO]: Server will restart in 7 seconds
[18:46:20 INFO]: Server will restart in 6 seconds
[18:46:21 INFO]: Server will restart in 5 seconds
[18:46:22 INFO]: Server will restart in 4 seconds
[18:46:23 INFO]: Server will restart in 3 seconds
[18:46:24 INFO]: Server will restart in 2 seconds
[18:46:25 INFO]: Server will restart in 1 seconds
[18:46:26 INFO]: Server is restarting
[18:46:26 INFO]: [Dynmap] Unloaded 11 components.
[18:46:26 INFO]: [Dynmap] Stopping map renderer...
[18:46:26 INFO]: [Dynmap] Saved 152 pending tile renders in world 'world'
[18:46:26 INFO]: [Dynmap] Saved 2 pending tile renders in world 'DIM-1'
[18:46:26 INFO]: [Dynmap] Disabled
[18:46:26 INFO]: Stopping server
[18:46:26 INFO]: [GroupManager] Disabling GroupManager vPre2.14.1.3 FINAL (Phoenix)
[18:46:26 INFO]: GroupManager - INFO - Scheduled Data Saving is disabled!
[18:46:26 INFO]: GroupManager version Pre2.14.1.3 FINAL (Phoenix) is disabled!
[18:46:26 INFO]: [EssentialsChat] Disabling EssentialsChat vPre2.14.1.3
[18:46:26 INFO]: Essentials: Using config file enhanced permissions.
[18:46:26 INFO]: Permissions listed in as player-commands will be given to all users.
[18:46:26 INFO]: [EssentialsSpawn] Disabling EssentialsSpawn vPre2.14.1.3
[18:46:26 INFO]: [Essentials] Disabling Essentials vPre2.14.1.3
[18:46:26 INFO]: [NametagEdit] Disabling NametagEdit v4.4.10
[18:46:26 INFO]: [WorldBorder] Disabling WorldBorder v1.8.7
[18:46:26 INFO]: [WorldBorder] [CONFIG] Border-checking timed task stopped.
[18:46:26 INFO]: [FancyTab] Disabling FancyTab v2.2 Release
[18:46:26 ERROR]: [FancyTab] An error has occurred whilst sending the packets. Is Bukkit up to date?
[18:46:26 ERROR]: [FancyTab] null
[18:46:26 INFO]: [FancyTab] FancyTab disabled!
[18:46:26 INFO]: [FancyTab] Thank you for using FancyTab.
[18:46:26 INFO]: [AutoSaveWorld] Disabling AutoSaveWorld v4.15
[18:46:26 INFO]: AutoSaving
[18:46:27 INFO]: AutoSave Complete
[18:46:30 INFO]: [PerfectBackup] Disabling PerfectBackup v1.6
[18:46:30 INFO]: Saving players
[18:46:30 INFO]: Chickn_SG lost connection: Server closed
[18:46:30 INFO]: Chickn_SG left the game.
[18:46:30 INFO]: Saving worlds
[18:46:30 INFO]: Saving chunks for level 'world'/Overworld
[18:46:30 INFO]: Saving chunks for level 'DIM10'/Storage Cell
[18:46:31 INFO]: Saving chunks for level 'DIM12'/Storage Cell
[18:46:31 INFO]: Saving chunks for level 'DIM1'/The End
[18:46:31 INFO]: Saving chunks for level 'DIM-1'/Nether
[18:46:31 INFO]: Cleaning up RFTools dimensions
...
[18:46:31 INFO]: Applying holder lookups
[18:46:31 INFO]: Holder lookups applied
[18:46:31 INFO]: RFTools: server is stopping. Shutting down gracefully
C:\Users\KSPGA\OneDrive\Documents\1.7.10 hlep server>cmd
Microsoft Windows [Version 10.0.19042.1165]
(c) Microsoft Corporation. All rights reserved.
C:\Users\KSPGA\OneDrive\Documents\1.7.10 hlep server>The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The process tried to write to a nonexistent pipe.
The batch file cannot be found.
Config looks like this:
restart:
juststop: false
oncrash:
enabled: true
scriptpath: start.bat
timeout: 60
checkerstartdelay: 20
runonnonpluginstop: false
auto:
enabled: false
broadcast: true
scriptpath: start.bat
time: []
countdown:
enabled: true
broadcastonsecond:
- 60
- 30
- 10
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
commands: []