{"action":"reopened","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/640","repository_url":"https://api.github.com/repos/couchbase/sync_gateway","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/640/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/640/events","html_url":"https://github.com/couchbase/sync_gateway/issues/640","id":56899810,"number":640,"title":"On Centos 7, service is not removed when sync_gateway package is de-installed","user":{"login":"lichenyang2","id":6787554,"avatar_url":"https://avatars.githubusercontent.com/u/6787554?v=3","gravatar_id":"","url":"https://api.github.com/users/lichenyang2","html_url":"https://github.com/lichenyang2","followers_url":"https://api.github.com/users/lichenyang2/followers","following_url":"https://api.github.com/users/lichenyang2/following{/other_user}","gists_url":"https://api.github.com/users/lichenyang2/gists{/gist_id}","starred_url":"https://api.github.com/users/lichenyang2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichenyang2/subscriptions","organizations_url":"https://api.github.com/users/lichenyang2/orgs","repos_url":"https://api.github.com/users/lichenyang2/repos","events_url":"https://api.github.com/users/lichenyang2/events{/privacy}","received_events_url":"https://api.github.com/users/lichenyang2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/sync_gateway/labels/backlog","name":"backlog","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/sync_gateway/labels/P3:%20low","name":"P3: low","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"ajres","id":7745210,"avatar_url":"https://avatars.githubusercontent.com/u/7745210?v=3","gravatar_id":"","url":"https://api.github.com/users/ajres","html_url":"https://github.com/ajres","followers_url":"https://api.github.com/users/ajres/followers","following_url":"https://api.github.com/users/ajres/following{/other_user}","gists_url":"https://api.github.com/users/ajres/gists{/gist_id}","starred_url":"https://api.github.com/users/ajres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajres/subscriptions","organizations_url":"https://api.github.com/users/ajres/orgs","repos_url":"https://api.github.com/users/ajres/repos","events_url":"https://api.github.com/users/ajres/events{/privacy}","received_events_url":"https://api.github.com/users/ajres/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajres","id":7745210,"avatar_url":"https://avatars.githubusercontent.com/u/7745210?v=3","gravatar_id":"","url":"https://api.github.com/users/ajres","html_url":"https://github.com/ajres","followers_url":"https://api.github.com/users/ajres/followers","following_url":"https://api.github.com/users/ajres/following{/other_user}","gists_url":"https://api.github.com/users/ajres/gists{/gist_id}","starred_url":"https://api.github.com/users/ajres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajres/subscriptions","organizations_url":"https://api.github.com/users/ajres/orgs","repos_url":"https://api.github.com/users/ajres/repos","events_url":"https://api.github.com/users/ajres/events{/privacy}","received_events_url":"https://api.github.com/users/ajres/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2015-02-07T06:22:51Z","updated_at":"2016-10-12T19:20:16Z","closed_at":null,"body":"On Centose 6, when sync_gateway package is de-installed, the sync_gateway service is removed.\r\n```\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ initctl list | grep sync_gateway\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ . ./sync_gateway_service_install.sh \r\nsync_gateway start/running, process 21188\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ initctl list | grep sync_gateway\r\nsync_gateway start/running, process 21188\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ \r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ \r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ rpm -e couchbase-sync-gateway \r\nsync_gateway stop/waiting\r\n\r\nYou have successfully uninstalled Couchbase Sync Gateway.\r\n\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ initctl list | grep sync_gateway\r\n[centos6 32:/opt/couchbase-sync-gateway/service ] $ uname -a\r\nLinux localhost.localdomain 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux\r\n\r\n```\r\n\r\nHowever, on Centos 7, the service is not installed when the package is removed:\r\n```\r\n[centos7:/opt/couchbase-sync-gateway/service ] $ yes | yum remove couchbase-sync-gateway\r\nLoaded plugins: fastestmirror, langpacks\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package couchbase-sync-gateway.x86_64 0:34-1.0.4 will be erased\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n=======================================================================================================================================================\r\n Package                                       Arch                          Version                            Repository                        Size\r\n=======================================================================================================================================================\r\nRemoving:\r\n couchbase-sync-gateway                        x86_64                        34-1.0.4                           installed                         21 M\r\n\r\nTransaction Summary\r\n=======================================================================================================================================================\r\nRemove  1 Package\r\n\r\nInstalled size: 21 M\r\nIs this ok [y/N]: Downloading packages:\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\nWarning: RPMDB altered outside of yum.\r\n\r\nYou have successfully uninstalled Couchbase Sync Gateway.\r\n\r\n  Erasing    : couchbase-sync-gateway-34-1.0.4.x86_64                                                                                              1/1 \r\nwarning: file /opt/couchbase-sync-gateway/bin/sync_gateway: remove failed: No such file or directory\r\n  Verifying  : couchbase-sync-gateway-34-1.0.4.x86_64                                                                                              1/1 \r\n\r\nRemoved:\r\n  couchbase-sync-gateway.x86_64 0:34-1.0.4                                                                                                             \r\n\r\nComplete!\r\n[centos7:/opt/couchbase-sync-gateway/service ] $ systemctl | grep sync_gateway\r\nsync_gateway.service                                                                      loaded failed failed    Couchbase Sync Gateway server\r\n[centos7:/opt/couchbase-sync-gateway/service ] $ ps aux | grep sync_gateway\r\nroot     17566  0.0  0.0 112640   972 pts/0    S+   21:56   0:00 grep --color=auto gateway\r\n[centos7:/opt/couchbase-sync-gateway/service ] $ uname -a\r\nLinux CentOS7_template 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n```"}}
{"actor":{"display_login":"adamcfraser"}}