I start the sync gateway server from command line like this:
$ ./sync_gateway_service_install.sh
But I have to do this every time I reboot the server. Is there any way to make this script run at server start up? I'm running Ubuntu 14.04.1 on my server.
Found the solution. The problem was Sync Gateway service was going to start before Couchbase Server was started. To solve this issue edit the couchbase_init.d file as following:
$ nano /opt/couchbase/etc/couchbase_init.d
look for
start() {
section and change it from this:to this:
Then edit the sync-gateway.conf file
and change this line:
to this:
That will start the sync-gateway service after Couchbase server is started.