2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-02 17:47:37 +00:00

doc: use pkill instead of ps | grep | awk | xargs (#6034)

pkill is provided by the same procps package as ps, so should be present
wherever ps is.
This commit is contained in:
Kilian Cavalotti
2019-02-25 18:08:08 -08:00
committed by yangsong
parent 56c21edd38
commit 3576d780fc
2 changed files with 2 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ site Attributes:
dbtracelevel: The trace level for the database access log. To activate this setting, please.
restart xcatd or send HUP signal to the 'xcatd: DB Access' process, Like: .
ps -ef | grep 'xcatd: DB Access' | grep -v grep | awk '{print $2}' | xargs kill -HUP
pkill -f -HUP 'xcatd: DB Access'
Currrent support values:
0: disable the trace log for db
1: trace the calls of database subroutines

View File

@@ -1266,7 +1266,7 @@ passed as argument rather than by table value',
" delimiter, to specify delimiter for those columns as format of 'column:delimiter'.\n\n" .
" dbtracelevel: The trace level for the database access log. To activate this setting, please. \n".
" restart xcatd or send HUP signal to the 'xcatd: DB Access' process, Like: .\n".
" ps -ef | grep 'xcatd: DB Access' | grep -v grep | awk '{print \$2}' | xargs kill -HUP \n".
" pkill -f -HUP 'xcatd: DB Access' \n".
" Currrent support values: \n" .
" 0: disable the trace log for db \n" .
" 1: trace the calls of database subroutines \n" .