Fakultas Ilmu Komputer UI

stop.sh 273 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

PID=$(ps ax | grep manage.py | grep -v grep | head -n1 | awk '{print $1}')
if [[ $PID ]]
then
  echo "Stopping bisago ..."
  ps ax | grep manage.py | grep -v grep | head -n1 | awk '{print $1}' | xargs sudo kill -TERM
else
  echo "bisago is not running ..."
fi