monurbox/plugins/check_proc

11 lines
101 B
Bash
Executable File

#!/bin/bash
export proc=$1
pgrep $proc > /dev/null
if [ $? -ne "0" ]
then
exit 1
else
exit 0
fi