Add hasrestart to some services

(5.0.X backport)
Hasrestart makes Puppet use restart instead of stop
and start to manage a service and many init scripts
would work better if used like this.

Change-Id: I7cee7cc4690b13d896775124ad00ebeba7daf68e
Closes-Bug: 1364119
Merge "Add hasrestart to some services" into stable/5.0