server-restart

last built 2 months ago
Build #9
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: NightFish
This plugin does not compile with the latest version of RocketMod.
Contact the author and kindly ask him to update this plugin or consider fixing it on GitHub.

The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

Server Restart

Server Restart:

This is a plugin to easily restart an Unturned server while in-game or through console. It also allows for restarting when the server gets shutdown.

 

Commands:

  • “/reboot” Reboots the Unturned server.
  • “/restart” Reboots the Unturned server.
  • “/shutdown” Triggers automatic restart if enabled in the configuration file.

 

Limitations:

This plugin is not designed to reboot your server if it crashes, it only reboots the server on a graceful shutdown. In future if people want it I could make such a plugin but there are already easily accessable scripts to do this. (Pretty sure rocket downloads with one)

 

Configuration:

There is currently only one configuration setting called “RestartOnShutdown” that as suggests, restarts the server when the “shutdown” command is typed.

By default this setting is enabled.

 

Suggestions:

This plugin could be used in conjunction with an auto-shutdown plugin to allow for easy rebooting of your server.

 

How this works:

The plugin launches a seperate “restart daemon” process at the shutdown of the server. This executable waits for the unturned server to shutdown then restarts it.

The source code for this executable can be found in the GitHub repo in a file called “RestartDaemon.cs”

The executable itself is stored as an embedded resource in the plugin dll.

You are welcome to inspect the executable file with Intermediary Language inspection tools to check if it matches the source code in github.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<RestartConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RestartOnShutdown>true</RestartOnShutdown>
</RestartConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />

Commands and permissions


Git changelog