{"action":"created","issue":{"url":"https://api.github.com/repos/zcash/zcash/issues/1732","repository_url":"https://api.github.com/repos/zcash/zcash","labels_url":"https://api.github.com/repos/zcash/zcash/issues/1732/labels{/name}","comments_url":"https://api.github.com/repos/zcash/zcash/issues/1732/comments","events_url":"https://api.github.com/repos/zcash/zcash/issues/1732/events","html_url":"https://github.com/zcash/zcash/issues/1732","id":186146782,"number":1732,"title":"Install systemd service with debian package","user":{"login":"defuse","id":4211072,"avatar_url":"https://avatars.githubusercontent.com/u/4211072?v=3","gravatar_id":"","url":"https://api.github.com/users/defuse","html_url":"https://github.com/defuse","followers_url":"https://api.github.com/users/defuse/followers","following_url":"https://api.github.com/users/defuse/following{/other_user}","gists_url":"https://api.github.com/users/defuse/gists{/gist_id}","starred_url":"https://api.github.com/users/defuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defuse/subscriptions","organizations_url":"https://api.github.com/users/defuse/orgs","repos_url":"https://api.github.com/users/defuse/repos","events_url":"https://api.github.com/users/defuse/events{/privacy}","received_events_url":"https://api.github.com/users/defuse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"assignees":[{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-30T16:38:09Z","updated_at":"2016-11-02T17:57:05Z","closed_at":null,"body":"It would be even more awesome if the debian package set up the systemd stuff. Here are the steps I followed to get Zcash launching on boot. Feel free to copy this into a wiki page if it'll be useful to others.\n\nAdd a user for zcash to run under:\n\n```\nadduser zcash\n```\n\nMake the zcash.conf:\n\n```\nsu zcash\ncd ~\nmkdir .zcash\nvim ~/.zcash/zcash.conf\n```\n\nGenerate a random username and password, and create the file like this:\n\n```\nrpcuser=<username>\nrpcpassword=<password>\ngen=1\nequihashsolver=tromp\ngenproclimit=4\nshowmetrics=0\n```\n\nChange `genproclimit` in the above to however many cores you want to devote to mining. If you just want to run a full node, without mining, set `gen=0`.\n\nAs root, put this in `/etc/systemd/system/zcash.service`:\n\n```\n[Unit]\nDescription=Zcash Node\nAfter=network.target\n\n[Service]\nType=simple\nRestart=always\nUser=zcash\nExecStart=/usr/bin/zcashd\nExecStop=/usr/bin/zcash-cli stop\nPIDFile=/home/zcash/.zcash/zcashd.pid\n\n[Install]\nWantedBy=multi-user.target\n```\n\nNow start it:\n\n```\nsystemctl start zcash\n```\n\nAnd enable it so it comes up after a reboot:\n\n```\nsystemctl enable zcash\n```\n\nOpen the P2P port to accept incoming connections (and help the network). Add this to the iptables rules (if you're using iptables):\n\n```\n-A INPUT -p tcp --dport 8233 -j ACCEPT\n```\n\nNow reboot and make sure it all starts correctly. Test from another Internet connection whether that port is accessible.\n"},"comment":{"url":"https://api.github.com/repos/zcash/zcash/issues/comments/257946909","html_url":"https://github.com/zcash/zcash/issues/1732#issuecomment-257946909","issue_url":"https://api.github.com/repos/zcash/zcash/issues/1732","id":257946909,"user":{"login":"ageis","id":1161532,"avatar_url":"https://avatars.githubusercontent.com/u/1161532?v=3","gravatar_id":"","url":"https://api.github.com/users/ageis","html_url":"https://github.com/ageis","followers_url":"https://api.github.com/users/ageis/followers","following_url":"https://api.github.com/users/ageis/following{/other_user}","gists_url":"https://api.github.com/users/ageis/gists{/gist_id}","starred_url":"https://api.github.com/users/ageis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageis/subscriptions","organizations_url":"https://api.github.com/users/ageis/orgs","repos_url":"https://api.github.com/users/ageis/repos","events_url":"https://api.github.com/users/ageis/events{/privacy}","received_events_url":"https://api.github.com/users/ageis/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T17:57:05Z","updated_at":"2016-11-02T17:57:05Z","body":"What do the other engineers on the team think about this? Should we do it? It also means we're going to have to start shipping a default configuration. We could leave the service disabled by default so it must be manually enabled. We already assume everyone has root and the ability to install packages, so this could ease the burden of starting and getting set up.\r\n\r\nThe only thing is, they would have to switch users to `zcash` every time they want to run `zcash-cli` and talk to the daemon. That's kind of annoying, and ideally, you don't want `zcash` to have a shell because of the security exposure associated with that. Is there a way to open up the socket to the world?"}}
{"actor":{"display_login":"ageis"}}