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
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.
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)
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.
This plugin could be used in conjunction with an auto-shutdown plugin to allow for easy rebooting of your server.
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.
<?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>
<?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" />