{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3680","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3680/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3680/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3680/events","html_url":"https://github.com/cockroachdb/cockroach/issues/3680","id":125471329,"number":3680,"title":"Provide init scripts.","user":{"login":"mberhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/mberhault","html_url":"https://github.com/mberhault","followers_url":"https://api.github.com/users/mberhault/followers","following_url":"https://api.github.com/users/mberhault/following{/other_user}","gists_url":"https://api.github.com/users/mberhault/gists{/gist_id}","starred_url":"https://api.github.com/users/mberhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mberhault/subscriptions","organizations_url":"https://api.github.com/users/mberhault/orgs","repos_url":"https://api.github.com/users/mberhault/repos","events_url":"https://api.github.com/users/mberhault/events{/privacy}","received_events_url":"https://api.github.com/users/mberhault/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockroachdb/cockroach/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"mberhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/mberhault","html_url":"https://github.com/mberhault","followers_url":"https://api.github.com/users/mberhault/followers","following_url":"https://api.github.com/users/mberhault/following{/other_user}","gists_url":"https://api.github.com/users/mberhault/gists{/gist_id}","starred_url":"https://api.github.com/users/mberhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mberhault/subscriptions","organizations_url":"https://api.github.com/users/mberhault/orgs","repos_url":"https://api.github.com/users/mberhault/repos","events_url":"https://api.github.com/users/mberhault/events{/privacy}","received_events_url":"https://api.github.com/users/mberhault/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-07T19:48:04Z","updated_at":"2016-01-07T20:00:51Z","closed_at":null,"body":"One of the standard ways of running cockroach will be through init scripts.\r\n\r\nWe need to consider a few things:\r\n* which type to support? systemd vs upstart vs ???\r\n* how to do config? we may need to introduce a config file. Something that maps directly to cmdline flags would be nice.\r\n"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/169789931","html_url":"https://github.com/cockroachdb/cockroach/issues/3680#issuecomment-169789931","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3680","id":169789931,"user":{"login":"mberhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/mberhault","html_url":"https://github.com/mberhault","followers_url":"https://api.github.com/users/mberhault/followers","following_url":"https://api.github.com/users/mberhault/following{/other_user}","gists_url":"https://api.github.com/users/mberhault/gists{/gist_id}","starred_url":"https://api.github.com/users/mberhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mberhault/subscriptions","organizations_url":"https://api.github.com/users/mberhault/orgs","repos_url":"https://api.github.com/users/mberhault/repos","events_url":"https://api.github.com/users/mberhault/events{/privacy}","received_events_url":"https://api.github.com/users/mberhault/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T20:00:51Z","updated_at":"2016-01-07T20:00:51Z","body":"as far as I can tell, [https://github.com/spf13/viper](https://github.com/spf13/viper) can be used to populate `spf13/cobra` flags from a config file. This may be a good solution."}}