create a script to update and restart data node