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