Auto-Restart Script

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Atte

New Member
Jul 29, 2019
13
0
0
Hey All,
I run a private FTB server with 3 friends. (we play a lot) The server starts lagging super badly roughly after 6 hours, and a restart fixes the lag for another 6 hours. I run it on a windows based machine and would like it to restart every hour.
(If there is a mod that does this could you please link it.)

Thanks!
- Atte

(I have no idea which category I should place this is so please tell me if it is in the wrong place)
 

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
Hey All,
I run a private FTB server with 3 friends. (we play a lot) The server starts lagging super badly roughly after 6 hours, and a restart fixes the lag for another 6 hours. I run it on a windows based machine and would like it to restart every hour.
(If there is a mod that does this could you please link it.)

Thanks!
- Atte

(I have no idea which category I should place this is so please tell me if it is in the wrong place)

and you're posting this again because...?
 

Atte

New Member
Jul 29, 2019
13
0
0
and you're posting this again because...?

Because I need a script or plugin. I posted it in the wrong place so now I post here and I get an answer. Why the attitude?

Are you able to load plugins with mcpc or are you just running the default ftbserver.jar?

Plugin = http://dev.bukkit.org/bukkit-plugins/autorestart/
No plugins = use the script at the bottom of his description and create a batch file with it. Then set it up Windows Task Scheduler.
Thanks, will try.[DOUBLEPOST=1383662703][/DOUBLEPOST]So with the task scheduler I would run the batch file I made every x amount of hours, and that restarts the server? Please correct me if I am wrong.
 

Yusunoha

New Member
Jul 29, 2019
6,440
-4
0
Because I need a script or plugin. I posted it in the wrong place so now I post here and I get an answer. Why the attitude?

aah sorry, I did not notice you posted this in the right category now. there have been several people the past few days reposting the same topics in different categories.
 

systemv

New Member
Jul 29, 2019
94
0
0
Hey All,
I run a private FTB server with 3 friends. (we play a lot) The server starts lagging super badly roughly after 6 hours, and a restart fixes the lag for another 6 hours. I run it on a windows based machine and would like it to restart every hour.
(If there is a mod that does this could you please link it.)

Thanks!
- Atte

(I have no idea which category I should place this is so please tell me if it is in the wrong place)

Are you running the server on the same machine you're playing on?
 

Atte

New Member
Jul 29, 2019
13
0
0
Are you running the server on the same machine you're playing on?
No, I have a server computer running at my house, I play on my personal computer. The server pc is almost dedicated to running the FTB server. Occasionally friends watch youtube on it or whatever. (It's a normal PC with just a nice CPU, so that's why it's on windows instead of Linux)
 

Atte

New Member
Jul 29, 2019
13
0
0
Are you able to load plugins with mcpc or are you just running the default ftbserver.jar?

Plugin = http://dev.bukkit.org/bukkit-plugins/autorestart/
No plugins = use the script at the bottom of his description and create a batch file with it. Then set it up Windows Task Scheduler.
So I made a batch file with the script on the plugin page. Then I changed the "craftbukkit.jar" to "ftbserver.jar" It doesn't close the server, it just opens a new instance of it and (obviously) tells me the port is being used... How would I close the server automatically while also saving the world? If mcpc is the only way how does that work? (I have access to all the files in the server)
 

Atte

New Member
Jul 29, 2019
13
0
0
Can someone please help me with this? I am in "dire" need of a restart script