-
I'd like to use cron to schedule a restart at 5am, but I'd also like to give users a period of notice in Global chat. Such as "Server restarting in 30 minutes".
What is the best way to achieve this with LGSM? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
here are already suggestions for ideas here? |
Beta Was this translation helpful? Give feedback.
-
This issue is puzzling me, I am trying to find solution but cant promise anything.
I have found few command line rcon clients, but looking for better ones. Temporary solution ?But here is something that you could maybe use until there is actual solution for your problem: Rust server plugin to create timed chat messages:There is plugin that can be found from uMod that allows you to schedule execution of rust server commands: Idea:
PLEASE NOTE:
Using the {
"EnableInGameTime-Timer": false,
"EnableRealTime-Timer": true,
"EnableTimerOnce": false,
"EnableTimerRepeat": false,
"InGameTime-Timer": {},
"RealTime-Timer": {
"12:00:00": "global.say Server restarting in 30 minutes !",
"12:15:00": "global.say Server restarting in 15 minutes !",
"12:20:00": "global.say Server restarting in 10 minutes !",
"12:25:00": "global.say Server restarting in 5 minutes !",
"12:29:30": "global.say Server restarting in 30 seconds !",
"00:00:00": "global.say Server restarting in 30 minutes !",
"00:15:00": "global.say Server restarting in 15 minutes !",
"00:20:00": "global.say Server restarting in 10 minutes !",
"00:25:00": "global.say Server restarting in 5 minutes !",
"00:29:30": "global.say Server restarting in 30 seconds !",
},
"TimerOnce": {},
"TimerRepeat": {}
} Using cronjob to restart rust server:
This will setup automation that executes the
Using cronjob to run script that updates the server:PLEASE NOTE: All the following actions are done with the same server user you are using to run the rustserver.
Calculator to create your own crontab timings: https://crontab.guru/#31_00___*
Theory:The setup described above should be able to give you:
Please let me know if anyone tries the described setup, or if you need any help !
|
Beta Was this translation helpful? Give feedback.
This issue is puzzling me, I am trying to find solution but cant promise anything.
I am researching following setup that runs from single bash script (can be used with cronjob):
global.say "update in x minutes"
or some plugin command)I have found few command line rcon clients, but looking for better ones.
If i am able to find easy to install rcon command line client, i will create bash script that uses that to achieve functionality above.
Temporary solution ?
But here is something that you could maybe use unti…