stop-dirsrv: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/sbin/stop-dirsrv - from package: 389-ds-base

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/stop-dirsrv - from package: 389-ds-base

You may install the required package with command apt-get install {package}
Error in other languages:
stop-dirsrv: bevel nie gevind nie
stop-dirsrv: comandă negăsită
stop-dirsrv: comando não encontrado
stop-dirsrv: commande introuvable
stop-dirsrv: command not found
stop-dirsrv: käsku ei ole
stop-dirsrv: không tìm thấy lệnh
stop-dirsrv: komanda nerasta
stop-dirsrv: Kommando nicht gefunden.
stop-dirsrv: kommandot finns inte
stop-dirsrv: komut yok
stop-dirsrv: nie znaleziono polecenia
stop-dirsrv: níor aimsíodh an t-ordú
stop-dirsrv: no se encontró la orden
stop-dirsrv: no s'ha trobat l'ordre
stop-dirsrv: opdracht niet gevonden
stop-dirsrv: parancs nem található
stop-dirsrv: perintah tidak ditemukan
stop-dirsrv: príkaz nenájdený
stop-dirsrv: příkaz nenalezen
stop-dirsrv: команда не найдена
stop-dirsrv: командата не е открита
stop-dirsrv: 命令找不到
stop-dirsrv: コマンドが見つかりません