server-restart

#6 - published 2 years ago

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


This plugin doesn't have any commands.

Git changelog


aa65c6ad6ebefcf 2017-04-17 17:10:59

Fixed reference issues

    b579e1aa3c218ce 2017-04-17 17:07:53

    Added daemon file

      d43a3d0a09744bd 2017-04-17 17:04:25

      Fixing lib issue stage 2

        e95619fee8078ef 2017-04-17 17:03:59

        Fixing Lib issue stage 1

          Download

          Build #6
          By downloading this file, you agree to our license terms.

          Repository

          github.com

          License

          MIT

          Author

          NightFish