Using signal names rather than signal numbers in trap calls.

This commit is contained in:
Daniel Baumann 2008-08-12 16:20:35 +02:00
parent d22dde7e47
commit 6a4a424d09
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ then
fi
# 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
echo "${DATE_START}" > "${SERVER}"/lock

View File

@ -36,7 +36,7 @@ then
fi
# 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
echo "${DATE_START}" > "${SERVER}"/Archive-Update-in-Progress