Sfoglia il codice sorgente

Check whether lsof and gdb are available

master
JustAnotherArchivist 6 anni fa
parent
commit
f7dc46991c
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. +12
    -0
      kill-wpull-connections

+ 12
- 0
kill-wpull-connections Vedi File

@@ -30,6 +30,18 @@ then
wpullPid=${pids[0]}
fi

if ! command -v lsof >/dev/null 2>&1
then
echo "Error: could not find lsof"
exit 1
fi

if ! command -v gdb >/dev/null 2>&1
then
echo "Error: could not find gdb"
exit 1
fi

if ! kill -0 ${wpullPid} >/dev/null 2>&1
then
echo "Error: no process with PID ${wpullPid}"


Caricamento…
Annulla
Salva