Skip to content

Commit c7d29a6

Browse files
committed
update readme
1 parent dcd6553 commit c7d29a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,13 @@ void ngx_link_func_exit_cycle(ngx_link_func_cycle_t* cyc) {
344344
```
345345
346346
#### Noted:
347-
The function init and exit are reserved function when started the nginx, it will call init method, when stop nginx, it will call exit function.
347+
The function init and exit cycle are reserved function when started the nginx, it will call init cycle function, when stop/reload nginx, it will call exit cycle function.
348348
```c
349-
void ngx_link_func_init(ngx_link_func_ctx_t* ctx){}
350-
void ngx_link_func_exit(ngx_link_func_ctx_t* ctx){}
349+
void ngx_link_func_init_cycle(ngx_link_func_cycle_t* cyc){}
350+
void ngx_link_func_exit_cycle(ngx_link_func_cycle_t* cyc){}
351351
```
352+
[references: The init and exit cycle hooks in application layer](https://github.com/Taymindis/nginx-link-function/wiki/The-init-and-exit-cycle-hooks-in-application-layer)
353+
352354

353355
#### Log Level
354356
The log can be called, the logged message will be store where you config error log in nginx.conf

0 commit comments

Comments
 (0)