Jump to content

Is there a tool to automatically restart a server and announce it in the chat?


Andy-Blackknight

Recommended Posts

If you run on Linux, and within a named TMUX session:

/usr/bin/tmux new-session -d -s Prod "~/avorion/server.sh"

 

Use the "send-keys" function:

tmux send-keys -t Prod "/say \"Update available! Auto-restarting server in 10 minutes, to install new release.\"" C-m
sleep 600
tmux send-keys -t Prod "/save" C-m
sleep 10
tmux send-keys -t Prod "/stop" C-m

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...