Update mysql_backup.sh
This commit is contained in:
@@ -127,7 +127,7 @@ if [ -s ${pidfile} ] ; then
|
||||
exit 1 ;
|
||||
fi
|
||||
|
||||
trap "rm -f ${pidfile} ;" EXIT INT KILL TERM SIGKILL SIGTERM SIGHUP;
|
||||
trap "rm -f ${pidfile} ;" EXIT INT KILL TERM SIGKILL SIGTERM SIGHUP ERR ;
|
||||
|
||||
echo $$ > ${pidfile} ;
|
||||
|
||||
@@ -173,6 +173,4 @@ if [ ! "${quiet}" ] ; then
|
||||
echo "Dump completed (`date +\"%H:%M:%S\"`)..." ;
|
||||
fi
|
||||
|
||||
rm -f ${pidfile} ;
|
||||
|
||||
exit 0 ;
|
||||
rm -f ${pidfile} ;
|
||||
Reference in New Issue
Block a user