{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenWIS/openwis4/issues/62","repository_url":"https://api.github.com/repos/OpenWIS/openwis4","labels_url":"https://api.github.com/repos/OpenWIS/openwis4/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/OpenWIS/openwis4/issues/62/comments","events_url":"https://api.github.com/repos/OpenWIS/openwis4/issues/62/events","html_url":"https://github.com/OpenWIS/openwis4/issues/62","id":211642156,"number":62,"title":"Cannot turn on replication service","user":{"login":"rogers492","id":2955702,"avatar_url":"https://avatars1.githubusercontent.com/u/2955702?v=4","gravatar_id":"","url":"https://api.github.com/users/rogers492","html_url":"https://github.com/rogers492","followers_url":"https://api.github.com/users/rogers492/followers","following_url":"https://api.github.com/users/rogers492/following{/other_user}","gists_url":"https://api.github.com/users/rogers492/gists{/gist_id}","starred_url":"https://api.github.com/users/rogers492/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogers492/subscriptions","organizations_url":"https://api.github.com/users/rogers492/orgs","repos_url":"https://api.github.com/users/rogers492/repos","events_url":"https://api.github.com/users/rogers492/events{/privacy}","received_events_url":"https://api.github.com/users/rogers492/received_events","type":"User","site_admin":false},"labels":[{"id":538520783,"url":"https://api.github.com/repos/OpenWIS/openwis4/labels/Retrieval","name":"Retrieval","color":"fef2c0","default":false},{"id":481984352,"url":"https://api.github.com/repos/OpenWIS/openwis4/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-03T09:52:59Z","updated_at":"2018-03-29T13:54:06Z","closed_at":"2018-03-29T13:54:06Z","author_association":"NONE","body":"_From @ywang-bom on May 5, 2015 4:30_\n\nThe replication service cannot be turned on if the status file does not exist before hand.\n\nThe `setServiceStatus` method of class `ControlServiceImpl` is used to turn on/off various services that OpenWIS offers. Setting replication service status is handled by invoking the `updateReplicationServiceStatus` method. However **this method does its job by only renames exsting service status file** (either `enabled` or `disabled`) and does nothing if the file does not exist. Hence it is programatically impossible to turn on the replication service.\n\nIn contrast, the `updateServiceStatus` method, which handles all other services, is able to create a new status file if none exists. \n\n**Possible Fix**\nSimilar to `updateServiceStatus` method, we can add code to check whether a replication status file exists and create a new one if none can be found.\n\n\n_Copied from original issue: OpenWIS/openwis#72_"}}
{"actor":{"display_login":"rogers492"}}