It seems like hadoop daemons don't come back after reboot so I'm making part of this script always run.