Catch duplicate processes

This commit is contained in:
toloveru 2017-04-10 03:34:15 +02:00
parent b8e38428a0
commit c619f235c6

View File

@ -6,6 +6,14 @@ current="$(uname -r)"
user="$(users)"
cores=$(nproc)
if [ -f /tmp/kernelcheck.pid ]
then
exit 0
elif [ ! -f /tmp/kernelcheck.pid ]
then
touch /tmp/kernelcheck.pid
fi
# Function body
function verify(){
local sign=$1 out=