How to use:
- Download mod.
- Place in mods folder.
- Create a file called
config/server_restarter.json
and fill out this template: (temporary solution until I implement #1)
{
"webhook_url": "",
"scheduled_actions": []
}
- Profit
Allows scheduling restarts/stops of the server using cron timings. Example: (note: not valid JSON, remove the comments)
{
"webhook_url": "<your url>",
"scheduled_actions": [
{
"action": "Restart", // or "Stop", requires capitalisation
"cron": "0 0 * * *", // Cron specification 'min hour day month dow'
"message": "Automatic daily restart" // Message used for reason of restart, only applies for "action": "Restart"
}
]
}
NOTE: The server launch also needs to be wrapped with server-launcher