Skip to content

Commit

Permalink
Update v-list-sys-services (#4022)
Browse files Browse the repository at this point in the history
fix for v-list-sys-services debian buster doesn't support option -d for pidof
  • Loading branch information
sahsanu authored and jaapmarcus committed Oct 13, 2023
1 parent a7152d6 commit 1b81b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/v-list-sys-services
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ get_srv_state() {

# Searching related pids
if [ -z $3 ]; then
pids=$(pidof -d '|' $name)
pids=$(pidof $name | tr ' ' '|')
else
pids=$(pidof -d '|' -x $name)
pids=$(pidof -x $name | tr ' ' '|')
fi
if [ -z "$pids" ] && [ "$name" != 'nginx' ]; then
pids=$(pgrep $name | tr '\n' '|')
Expand Down

0 comments on commit 1b81b13

Please sign in to comment.