add more check for root user
This commit is contained in:
parent
31890a88ee
commit
ce2d82470f
1 changed files with 3 additions and 3 deletions
|
|
@ -25,10 +25,10 @@ rlJournalStart
|
|||
|
||||
rlRun "ps -fe | grep ^kea|wc -l|grep 4"
|
||||
|
||||
ps aux | grep '[k]ea' | awk '$1 != "root"'
|
||||
rlAssert0 "no root" $?
|
||||
|
||||
ps aux | grep '[k]ea' | gawk -F' ' '{ print $1 }' | grep root
|
||||
rlAssert0 "no root" >0
|
||||
|
||||
rlLog "`echo ps;ps -fe | grep kea`"
|
||||
rlRun "systemctl stop kea-dhcp4.service"
|
||||
rlRun "systemctl stop kea-dhcp6.service"
|
||||
rlRun "systemctl stop kea-dhcp-ddns.service"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue