readme changes

This commit is contained in:
Robin Appelman 2022-06-18 17:57:54 +02:00
commit 6556a93f0b
2 changed files with 28 additions and 2 deletions

View file

@ -20,7 +20,33 @@ You'll need to manually destroy the existing server in that case.
You can overwrite this behavior by setting `manage_existing = true` in your `config.toml`,
## Manual usage
Instead of managing the servers on a schedule with a background server you can also manually manage the server.
### List running servers
```shell
dispenser config.toml list
```
### Start a new server
```shell
dispenser config.toml start
```
Note that this will not start an additional server is a server is already running
### Stop a running server
```shell
dispenser config.toml stop
```
## TODO
- [x] don't blindly kill server if there are players connected
- [ ] kill the server earlier if everyone disconnected
- [ ] kill the server earlier if everyone disconnected
- [x] digital ocean backend
- [ ] more backends?

View file

@ -8,7 +8,7 @@ config_mode = "6v6" # 6v6 or 9v9, defaults to "6v6"
name = "Spire" # server name. optional, defaults to "Spire"
tv_name = "SpireTV" # stv name. optional, defaults to "SpireTV"
image = "spiretf/docker-spire-server" # docker image for the tf2 server. optional, defaults to "spiretf/docker-spire-server"
ssh_keys = ["ssh-rsa AAAA..."] # ssh key to add to the server. optional
ssh_keys = ["ssh-rsa AAAA..."] # ssh keys to add to the server. optional
manage_existing = false # whether to detect and manage server that are already running, optional, disabled by default
# Specify either the vultr settings or the digitalocean settings to pick the cloud provider