Modify script to stop cron job while deploying war