Antes:
# service jetty status
* Jetty servlet engine is not running.
Use (localhost: nome do host da máquina virtual 2022):
$ ssh -p 2022 localhost "sudo service jetty start"
* Starting Jetty servlet engine. jetty
* Jetty servlet engine started, reachable on http://u1004s01:8080/. jetty
...done.
$
Resultado:
# service jetty status
* Jetty servlet engine is running with pid 2623, and is reachable on http://:8080/
O serviço de comando não precisa ir para o segundo plano. Adicione o comando de saída:
ssh myhost "sudo /sbin/service jetty6 start;sleep 60;sudo /sbin/service jetty6 status;ps aux | grep jetty"