Fix restart command

* Add missing parameters for pulling option
* Fix clone in doctrine entity to avoid updating a duplicated message
* Fix restart behavior