youtubebeat/monitoring.sh

7 lines
131 B
Bash
Executable file

#!/bin/bash
if (($(ps aux | grep youtubebeat | wc -l) < 2)); then
cd /tmp/ELK/youtubebeat-6.5.0-linux-x86
./youtubebeat &
fi