debian package shouldn't restart depending services more than once
Right now when upgrading debian packages postgresql and tomcat7 are restarted more than once, this is not necessary (and in fact when tomcat is restarted during deployment it might happen that deployment will be partial resulting in not working minerva instance)