Catch duplicate processes
This commit is contained in:
parent
b8e38428a0
commit
c619f235c6
@ -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=
|
||||
|
Reference in New Issue
Block a user