浏览代码

cookbooks/devel/pseudovariables: note that $shv(...) can be set via rpc

Daniel-Constantin Mierla 9 月之前
父节点
当前提交
f9a41ae648
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      docs/cookbooks/devel/pseudovariables.md

+ 9 - 1
docs/cookbooks/devel/pseudovariables.md

@@ -1379,8 +1379,9 @@ processes. Each “shv” has single value and it is initialised to integer
 shared variable. The module exports a set of RPC functions to get/set
 the value of shared variables.
 
-Example - shv(name) pseudo-variable usage:
+Example - $shv(name) pseudo-variable usage:
 
+```
     ...
     modparam("pv", "shvset", "debug=i:1")
     ...
@@ -1388,6 +1389,13 @@ Example - shv(name) pseudo-variable usage:
         xlog("request: $rm from $fu to $ru\n");
     }
     ...
+```
+
+These variables can be set also via RPC:
+
+```
+ksmctl rpc pv.shvSet debug int 2
+```
 
 🔥**IMPORTANT**: It is R/W variable (you can assign values to it directly in
 configuration file)