I am trying to start jetty service from ssh using the command:
ssh -t myhost "sudo /sbin/service jetty6 start"
All works well, service comes up but after the command terminates and the connection closes down, the Jetty service goes down, too. If I log into ssh and do the "service" command manually, all works fine.
I have tried to use the recipe from this answer, that didn't work either.
Best Answer
Before:
Use(localhost:2022 virtual machine hostname):
Result:
Command service not need go to the background. Add output command: