mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
9 lines
179 B
Bash
Executable file
9 lines
179 B
Bash
Executable file
#!/bin/sh
|
|
|
|
pid=$(cat /var/run/packet_capture.pid)
|
|
if [ -n "$pid" ] && grep -sq packet_capture "/proc/$pid/cmdline"; then
|
|
ppid=$(pgrep -P $pid)
|
|
kill -TERM $ppid
|
|
fi
|
|
|
|
exit 0
|