[INACTIVE][ADMIN/MECH/GEN] RestartNow v0.3_2 - Full server restarts [818 - 1060]

Discussion in 'Inactive/Unsupported Plugins' started by aidan matzko, Jun 5, 2011.

  1. Offline

    tips48

    RestartNow - Complete Restarts:
    Version: v0.3_2

    When i first joined bukkit, I was very surprised by the fact that there was no way to restart the server. Yes, there are toolkits and modified .bat's or .sh's, but why isn't there just a plugin? That's what this is for.


    Features:
    • Full Server Restarts.
    • Compatible with any OS!
    • Compatible with any startup script.
    • Automatic restarts every x minute(s)!
    • Restart the server when there are no players on the server!
    • Reload the server when there are no players on the server!
    • Permissions/Group Manager support
    • Commands include:
      • /restart -- restarts the server
      • /schedulerestart <time + time unit> -- cancels all planned restarts and schedules the server to be restart in <time + time unit>
      • /resettimers -- cancels every planned restart
      • /kickall -- kicks everyone from the server, including yourself if its not from the console
      • /saveworlds -- saves all worlds
      • /reloadplugin <plugin> -- reload plugin X
      • /restartnow <update> -- displays general information and updates the server
    To Do


    • Wrapper -- High
    Known Bugs

    • After a restart linux users can't see the gui(it's still running!)
    • Does not work with MCMA(use its /restart command, not fixable by me)
    • /restartnow update does not download 0.3_1, please manually update till i get back
    • Update times are slightly screwed up (sorry :/) Will be fixed ASAP
    • You can't have a space from C:/(or your default drive) to craftbukkit.jar. A fix will be out soon
    • Configuration options still give an error when the config is setup wrong...
    Downloads

    Jar
    Source Code

    How to Install:
    There is now a semi-complete wiki! hopefully this helps clear up any confusion.
    Wiki Here
    LINUX BUG
    In linux if you restart the server, there will be NO console gui to type commands into. The server is still running, there is just no GUI. I can make it a simple light weight wrapper, comment on if you would rather have a console gui or a wrapper!

    Changelog:
    • Version 0.3_2
      • Very important bug fix in restartNowMain.jar
    • Version 0.3_1
      • Fix notification times(again!)
      • Test updating from the console! Type /restartnow update ;)
    • Version 0.3
      • Huge update! Please delete your configuration file
      • API! Check the wiki for more information
      • Auto updating!(Give a huge thanks to @Adamki11 , he created the lib, and I modified to suit my needs)
      • Auto extracting! No more pesky zip file
      • Completely reworked structure.
      • Broadcast times FIXED!
      • Other various bug fixes
      • Added a github wikipedia
    • Version 0.2_1
      • Fix the Reload-Server problem
    • Version 0.2
      • New command. /reloadplugin <plugin name>. Pretty simple, reloads that plugin. Must be the same exactly spelling as the plugin when listed in /plugins
      • The command /schedulerestart <time> is changed to /schedulerestart <time + time unit> the time units are same for config as they are for this command.
      • Huge update for the config. Look at the documentation again ;)
      • Broadcast with X minutes left till restart!
      • The linux server is kinda fixed. Checkout above
      • No player reload.
      • Much more stable.
    • Version 0.1_2 -- Note quick reupload for Ubuntu users to change the way the .sh is opened
      • Full fix for Windows users. Upload now includes a bat file(windowsonly.bat) that is required for windows users.
    • Version 0.1_1
      • Fixed the duplicate command prompt error on Windows.
    • Version 0.1
      • It's out!
      • Added some changes from the beta version such as more commands, another safeguard, and improved permissions handling.
    Error Reports:
    • Please post feature requests/bugs to github, makes it easier to get them all!
    • If you would like to submit a bug(github/forum), please use this method:
    • Before you do anything, open a command line
    • cd to the server directory
    • type java -jar restartNowMain.jar "<name of bat or sh>" "<os name> "1"
    • Code:
      Config File
                                     
                                     The .sh or .bat you use to start the server
                                     
                                     What happened when you did the steps above with a command line?
                                     
     
  2. Offline

    tips48

    I'm going to hopefully push a fix(when i find one) as soon as I get home, but i'm still in New York
     
    Teh Kitteh likes this.
  3. Offline

    Teh Kitteh

    Alright thanks bro.
     
  4. Offline

    tips48

    Any time
     
  5. Offline

    sharkck

    Hey again! I have found a huge bug that needs to be fixed.... EVERY time a /restart or the plugin restarts the server, it leaves an instance of java.exe running in the background.... the 'dead' process takes up about 7-9 megs of ram each... so a server that has been running for many days straight restarting every 1-2 hours plus server /restart commands... thats a TON of java.exe's running in the background as well as a ton of memory being taken up in dead processes.... Please, if there is a way to fix this that would be awesome!


    Edit: It does this on 32 bit windows XP, 64 bit Windows 7 pro as well as Server 2008 Datacenter 64bit.
    Also, I do not know if this happened in previous versions as I have never really looked.
     
  6. Offline

    tips48

    @sharkck i noticed this on a Windows 7 Ultimate 64 bit machine, although i though i fixed it... Try deleting restartNowMain.jar and reloading the server (do not restart it :p)...
    OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOH <- i just realized why there are so many java.exes... Expect a bugfix tonight and ignore my advice above
     
  7. Offline

    sharkck

    LOL... looks like you had an awakening midway through the post :D Happens to me all the time :-Þ

    Will be looking forward to the update!
     
  8. Offline

    tips48

    /me goes to type :p
     
  9. Offline

    sharkck

    I typed restartnow update in the server console, it downloaded a file, reloaded it and bam it was still 3.1... does the 3.2 update fix this?
     
  10. Offline

    morizuki

    Hm.. I don't know if this is the right to ask..

    /reloadplugin <plugin> causing the Citizens Plugin to have a bug that you can get the items for free or the wizard that let u teleport for free..
     
  11. Offline

    tips48

    Does /reload screw up Citizens?
    @sharkck the /restartnow update thing is "apparently" bugged, but when I tested it it worked :/ I need to check the download link, but I would just redownload as normal right now.
     
  12. Offline

    morizuki

    nope it doesn't screw up..

    what I mean is.. when u try /reloadplugin <anyplugin> it will cause Citizens Plugins to have a bug like the Traders, you can get their items for free, Wizards, can teleport you free..
     
  13. Offline

    Switch0r

    Will "RestartNow" restart the server with this error ?
    2011-07-21 17:27:31 [INFO] Read timed out
    2011-07-21 17:52:00 [INFO] Connection reset
    2011-07-21 17:55:06 [INFO] Read timed out
    2011-07-21 17:57:46 [INFO] Read timed out
    2011-07-21 18:05:49 [INFO] Read timed out
    2011-07-21 18:10:49 [INFO] Read timed out
    2011-07-21 18:39:50 [INFO] Read timed out
    2011-07-21 18:40:47 [INFO] Read timed out
    2011-07-21 18:41:32 [INFO] Read timed out
     
  14. Offline

    decebaldecebal

    Here is my config:

    #RestartNow Config
    #Fri Jul 15 11:14:10 EEST 2011
    Kick-Reason=Server is restarting.
    Wait-Before-Start=15 s
    Notify-Times=1 h, 30 m, 20 m, 10 m, 5 m, 1 m, 30 s
    Automatic-Reloads-Time=45 m
    Craftbukkit-Launcher=Start.bat
    Chat-Color-On-Shutdown=RED
    No-Players-Reload-Time=30 m
    No-Player-Time=30 m
    Automatic-Reloads=true
    Automatic-Restarts-Time=2 h
    No-Players-Reload=true
    Automatic-Restarts=true
    Broadcast-On-Shutdown=**Server is restarting\!**
    No-Players-Restart=true
     
  15. Offline

    sharkck

    Not sure what your problem is decebal (havnt read back to see your OP) but I have a suggestion for you... I notice your batch file is named Start.bat... I would suggest avoiding the use of capital letters in any pathing.... these things are very sensitive to caps vs no caps... Good luck!
     
  16. Offline

    tips48

    It, sadly, cannot detects error like that. sorry!

    Weird. One possibility is that it is still saving when it gets enabled again. Do you have a ton of NPC's? Also, does it get fixed once you reload again?

    Try changing the Automatic-Restarts-Time to 30 s and see if it restarts.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  17. Offline

    Masterflapdrol

    YOUR PLUGINS ARE AWESOME!!!
     
  18. Offline

    Fezz

    Does thsi work for Build 1000? Just to be sure that it won't crash my server like all my other plguins did.
     
  19. Offline

    sharkck

    Yes, it works beautifully for build 1000
     
  20. Offline

    Masterflapdrol

    I have a problem with this.
    I am a mac Osx leopart user. my bukkit server is in users/ [secret] /desktop/server/craftbukkit .
    My starter is in javascript. i open it with terminal. this is da code:
    java -Xms2000M -Xmx2000M -jar /users/louise/desktop/server/craftbukkit.jar nogui
    My startfile name is serverstart.command
    i pulld the restartnow plugin in my plugins folder.
    if i start my server and close it agan.
    it had a file with a config file inside.
    everything is fine. for now...
    there is something saying that it will open up start.bat (in the config)
    i changet it to serverstart.command
    (i checked it is fine!)
    now i go in my server *starting*
    *loading*
    it says the plugin is working fine. yay i think..
    when i am ingame and i use /restart it will stop it and kick me with the reason restarting server: works fine
    but now it doesnt start up agan! help!
    ( i can start it up with my hand. but the plugin doesnt)
    did i enything wrong?
     
  21. Offline

    tips48

    @Masterflapdrol first of all, thanks for the compliment :p Anyway,
    A)Paste your config(did you adjust it?)
    B)Are there any errors
    C)You left your name on the fourth line instead of [secret] :)
     
  22. Offline

    decebaldecebal

    I t
    I did it and it just didn't want to restart!
    And also if i restart the server manually (using /restart) and i get back to the server in half an hour the console says Read Time out and the server just froze!Is this a plugin or a bukkit problem?
     
  23. Offline

    Masterflapdrol

    So do i have to put the road inside like /users/ (the name)/server/serverstart.command.
    yes the plugin downloaded the config. There where not any errors but it doesnt open it up agan.
     
  24. Offline

    tips48

    A)I see no reason why automatic restarts wouldn't work if /restart does, sorry
    B)Thats a bukkit problem. are you on 1000?

    windows or linux?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  25. Offline

    Masterflapdrol

    Mac
     
  26. Offline

    sharkck

    Hey! I found another bug!
    I turned automatic reloads on, set it to 31 minutes and it prompts in the ingame chat, server is restarting in 1800 minutes while in the server console it says 30 minutes... and the whole way down, it says numbers higher than they should be just like the /schedulerestart problem we fixed previously did. Also, it says the server's restarting even though its just a reload.

    One other thing, /version RestartNow says it is version 0.3 (not 3.2).

    Hope all is well!
     
  27. Offline

    tips48

    Just a response to everyone:
    I've been extremely busy this week, as this week is "band week", which means band from 8am to 10pm every day, so I haven't had much time to do what i've said i'll do. sorry :p
    @sharkck thanks for the report, i know why but won't be able to fix till the weekend
    @Masterflapdrol weird, i'll think about why it won't work :O
     
  28. Offline

    sharkck

    Sweet! Cant wait for the update!

    *hopes the /update command works this time! :-Þ
     
  29. Offline

    vampirepiggy9

    mine isnt restarting....itz just stopping the server
     
  30. Offline

    tips48

    haha :D
    @vampirepiggy9 i'm going to need more information then that. did you read the OP?
     
  31. Offline

    piluke

    I'm having the same problems as Masterflapdrol.

    I'm on Windows XP. My batch file is located at C:\Documents and Settings\HP_Administrator\Desktop\Game Servers\Minecraft\Survival\run.bat

    Here's my config:
    Also whenever it starts up or is reloaded it gives this error:
     

Share This Page