jumpserver/stopserver

6 lines
154 B
Bash
Executable File

#!/bin/bash
pids=$(ps axu | grep -E '(manage.py|log_handler|index.js)' | grep -v 'grep' | awk '{ print $2 }')
for pid in $pids;do
kill -15 $pid
done