©2015 - 2022 Chad’s Technoworks. Disclaimer and Terms of Use

Chad’s TechnoWorks My Journal On Technology

Information Technology

Sample Sync Gateway Installation And Configuration Procedure - page 2

GUIDE TO UNINSTALL SYNC GATEWAY


1. Stop Sync Gateway Services

[root@lxnode14 ~]# ps -ef | grep sync_gateway

root      1136  1135  0 17:36 ?        00:00:00 su --session-command /opt/couchbase-sync-gateway/bin/sync_gateway /home/sync_gateway/sync_gateway.json >> /home/sync_gateway/logs/sync_gateway_access.log 2>> /home/sync_gateway/logs/sync_gateway_error.log sync_gateway

501       1144  1136  0 17:36 ?        00:00:00 bash -c /opt/couchbase-sync-gateway/bin/sync_gateway /home/sync_gateway/sync_gateway.json >> /home/sync_gateway/logs/sync_gateway_access.log 2>> /home/sync_gateway/logs/sync_gateway_error.log

501       1146  1144  0 17:36 ?        00:00:02 /opt/couchbase-sync-gateway/bin/sync_gateway /home/sync_gateway/sync_gateway.json

root      7912  7827  0 20:31 pts/0    00:00:00 grep sync_gateway

[root@lxnode14 ~]#

[root@lxnode14 ~]# initctl stop sync_gateway

sync_gateway stop/waiting

[root@lxnode14 ~]#

[root@lxnode14 ~]# ps -ef | grep sync_gateway

root      7926  7827  0 20:31 pts/0    00:00:00 grep sync_gateway

[root@lxnode14 ~]#


2. Remove Sync gateway Package


[root@lxnode14 ~]# rpm -qa | grep couchbase

couchbase-sync-gateway-1.4.1-3.x86_64

[root@lxnode14 ~]#

[root@lxnode14 ~]# rpm -e couchbase-sync-gateway

ERROR: unknown OS "RedHatEnterpriseServer"

This script removes an init service to run a sync_gateway instance.


You have successfully uninstalled Couchbase sync_gateway.


The sync_gateway user account is still active, remove it manually if it is no longer required

[root@lxnode14 ~]#


3. Cleanup install directories


[root@lxnode14 opt]# cat /etc/passwd | grep couchbase

couchbase:x:495:491:couchbase system user:/opt/couchbase-sync-gateway:/bin/sh

[root@lxnode14 opt]# cat /etc/passwd | grep sync_gateway

sync_gateway:x:501:501::/home/sync_gateway:/bin/bash

[root@lxnode14 opt]#


Proceed to remove install dir:

rm -rf /opt/couchbase-sync-gateway/*


Optional: Remove the config file of Sync Gateway if no longer needed:

rm -rf /home/sync_gateway/*






 Prev < 1 2