add maintenance mode tasks and restart apache on deploy