| 1 |
# Name |
| 2 |
|
| 3 |
_kill_ - stop the server after a duration |
| 4 |
|
| 5 |
# Description |
| 6 |
|
| 7 |
_kill_ stops the server after some amount of time. Its main use is to spin up a server, perform a minimal |
| 8 |
check and be certain it will shut itself down again. This minimizes the CI/CD setup that is needed, as you can |
| 9 |
just start atomdns in the background and forget about it. |
| 10 |
|
| 11 |
As this takes down the entire server it doesn't matter in which handler block it is specified. |
| 12 |
|
| 13 |
# Syntax |
| 14 |
|
| 15 |
```txt |
| 16 |
kill DURATION |
| 17 |
``` |
| 18 |
|
| 19 |
# Examples |
| 20 |
|
| 21 |
```conffile |
| 22 |
example.org { |
| 23 |
kill 10s |
| 24 |
any |
| 25 |
whoami |
| 26 |
} |
| 27 |
``` |
| 28 |
|
| 29 |
# Bugs |
| 30 |
|
| 31 |
The server's shutdown handlers are not executed. |