Sync gateway shutting down on closing ssh connection

Hey guys,

I have Couchbase server and sync-gateway running on the same Amazon EC2 instance. everything is working as expected.

Except, soon as I close the SSH window from my local machine, sync gateway on server shuts down.
I am starting sync gateway with $./sync_gateway config.json

I am new to the backend/server administration.

Any help would be highly appreciated.


Sure — this is a generic shell usage issue. If you launch any process directly from a shell that way, it’s killed when the shell process exits.

Adding an “&” at the end of the command line will start the process asynchronously, which should allow it to keep running after you log out. (If that doesn’t work, put a “nohup” at the start of the command.)


Awesome!! Thank you for your help.