Catch duplicate processes
This commit is contained in:
parent
b8e38428a0
commit
c619f235c6
@ -6,6 +6,14 @@ current="$(uname -r)"
|
|||||||
user="$(users)"
|
user="$(users)"
|
||||||
cores=$(nproc)
|
cores=$(nproc)
|
||||||
|
|
||||||
|
if [ -f /tmp/kernelcheck.pid ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
elif [ ! -f /tmp/kernelcheck.pid ]
|
||||||
|
then
|
||||||
|
touch /tmp/kernelcheck.pid
|
||||||
|
fi
|
||||||
|
|
||||||
# Function body
|
# Function body
|
||||||
function verify(){
|
function verify(){
|
||||||
local sign=$1 out=
|
local sign=$1 out=
|
||||||
|
Reference in New Issue
Block a user