pgrep docker daemon

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2016-03-16 19:50:52 +01:00
parent c28ce3468e
commit 9209888516
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ contains() {
get_command_line_args() {
PROC="$1"
for PID in $(pgrep -x -o "$PROC")
for PID in $(pgrep -f -o "$PROC")
do
tr "\0" " " < /proc/"$PID"/cmdline
done

View file

@ -5,7 +5,7 @@ info "2 - Docker Daemon Configuration"
# 2.1
check_2_1="2.1 - Do not use lxc execution driver"
get_command_line_args docker | grep lxc >/dev/null 2>&1
get_command_line_args "docker daemon" | grep lxc >/dev/null 2>&1
if [ $? -eq 0 ]; then
warn "$check_2_1"
else