Using signal names rather than signal numbers in trap calls.
This commit is contained in:
parent
d22dde7e47
commit
6a4a424d09
|
@ -24,7 +24,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Creating lock trap
|
# Creating lock trap
|
||||||
trap "test -f ${SERVER}/lock && rm -f ${SERVER}/lock; exit 0" 0 1 2 3 9 15
|
trap "test -f ${SERVER}/lock && rm -f ${SERVER}/lock; exit 0" 0 HUP INT QUIT KILL TERM
|
||||||
|
|
||||||
# Creating lock file
|
# Creating lock file
|
||||||
echo "${DATE_START}" > "${SERVER}"/lock
|
echo "${DATE_START}" > "${SERVER}"/lock
|
||||||
|
|
|
@ -36,7 +36,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Creating lock trap
|
# Creating lock trap
|
||||||
trap "test -f ${SERVER}/Archive-Update-in-Progress && rm -f ${SERVER}/Archive-Update-in-Progress; exit 0" 0 1 2 3 9 15
|
trap "test -f ${SERVER}/Archive-Update-in-Progress && rm -f ${SERVER}/Archive-Update-in-Progress; exit 0" 0 HUP INT QUIT KILL TERM
|
||||||
|
|
||||||
# Creating lock file
|
# Creating lock file
|
||||||
echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress
|
echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress
|
||||||
|
|
Loading…
Reference in New Issue