Skip to content

Commit b261793

Browse files
author
Pat
authored
hot-reload: add config file option (#1226)
Signed-off-by: Patrick Stephens <[email protected]>
1 parent e2dea2f commit b261793

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

administration/hot-reload.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ description: Enable hot reload through SIGHUP signal or an HTTP endpoint
44

55
# Hot Reload
66

7-
Fluent Bit supports the hot reloading feature when enabled via the command line with `-Y` or `--enable-hot-reload` option.
7+
Fluent Bit supports the hot reloading feature when enabled via the configuration file or command line with `-Y` or `--enable-hot-reload` option.
88

99
## Getting Started
1010

1111
To get started with reloading via HTTP, the first step is to enable the HTTP Server from the configuration file:
1212

13-
```
13+
```toml
1414
[SERVICE]
1515
HTTP_Server On
1616
HTTP_Listen 0.0.0.0
1717
HTTP_PORT 2020
18-
19-
# Other stuff of plugin configurations
18+
Hot_Reload On
19+
...
2020
```
2121

2222
The above configuration snippet will enable the HTTP endpoint for hot reloading.
@@ -32,11 +32,10 @@ Hot reloading can be kicked via HTTP endpoints that are:
3232

3333
If users don't enable the hot reloading feature, hot reloading via these endpoints will not work.
3434

35-
For using curl to reload fluent-bit, users must specify an empty request body as:
35+
For using curl to reload Fluent Bit, users must specify an empty request body as:
3636

37-
38-
```text
39-
$ curl -X POST -d {} localhost:2020/api/v2/reload
37+
```shell
38+
curl -X POST -d '{}' localhost:2020/api/v2/reload
4039
```
4140

4241
### Via Signal
@@ -48,4 +47,3 @@ Hot reloading also can be kicked via `SIGHUP`.
4847
## Limitations
4948

5049
The hot reloading feature is currently working on Linux and macOS. Windows is not supported yet.
51-

0 commit comments

Comments
 (0)