Remove the restartCommand param, but adding an array of string, each one containing a command to be run through SSH, at the final step of the process.
This is intendend, for example, to run DB migrations (and of course to restart the service if needed now that the restartCommand is no more)