Skip to content

Commit

Permalink
better fix for #236
Browse files Browse the repository at this point in the history
  • Loading branch information
Natenom committed Nov 26, 2017
1 parent a9a9e21 commit 5fc1bb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ function start_bot_mpd() {
}
function stop_bot_mpd() {
local botid=${1}
local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
#local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
local mpdpid=$(ps ax | grep -i mpd | grep -v grep | sed 's/^\ *//g' | grep -E "mpd.*mpd1" | cut -d" " -f1)

kill ${mpdpid} > /dev/null 2>&1
}

Expand Down

0 comments on commit 5fc1bb9

Please sign in to comment.