We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d043ca3 commit 4a7e4b4Copy full SHA for 4a7e4b4
1 file changed
scripts/manage.sh
@@ -54,7 +54,7 @@ function start_bot_mpd() {
54
}
55
function stop_bot_mpd() {
56
local botid=${1}
57
- local mpdpid=$(ps aux | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f2)
+ local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
58
kill ${mpdpid} > /dev/null 2>&1
59
60
0 commit comments