{"action":"created","comment":{"url":"https://api.github.com/repos/gentoo/gentoo/pulls/comments/42943407","id":42943407,"diff_hunk":"@@ -0,0 +1,34 @@\n+#!/sbin/openrc-run\n+# Copyright 1999-2015 Gentoo Foundation\n+# Distributed under the terms of the GNU General Public License v2\n+# $Id$\n+\n+: ${CONFIG:=/etc/minidlna.conf}\n+: ${M_USER:=minidlna}\n+: ${M_GROUP:=minidlna}\n+\n+name=\"MiniDLNA\"\n+\n+pidfile=\"/run/minidlna/minidlna.pid\"\n+command=\"/usr/sbin/minidlnad\"\n+command_args=\"-P $pidfile -f $CONFIG\"\n+start_stop_daemon_args=\"--user ${M_USER}:${M_GROUP}\"\n+\n+required_files=\"$CONFIG\"\n+\n+depend() {\n+\tneed net\n+}\n+\n+start_pre() {\n+\tif [ \"$M_USER\" == \"root\" ]; then\n+\t\teerror \"It's not a good idea to run minidlna as root!\"\n+\t\texit 2\n+\tfi\n+\n+\tif [ \"${RESCAN/true/yes}\" == \"yes\" ]; then","path":"net-misc/minidlna/files/minidlna-1.1.4.initd","position":29,"original_position":29,"commit_id":"1e4f959d3c646b796735a647c0d18b0bd017d81f","original_commit_id":"1e4f959d3c646b796735a647c0d18b0bd017d81f","user":{"login":"mgorny","id":110765,"avatar_url":"https://avatars.githubusercontent.com/u/110765?v=3","gravatar_id":"","url":"https://api.github.com/users/mgorny","html_url":"https://github.com/mgorny","followers_url":"https://api.github.com/users/mgorny/followers","following_url":"https://api.github.com/users/mgorny/following{/other_user}","gists_url":"https://api.github.com/users/mgorny/gists{/gist_id}","starred_url":"https://api.github.com/users/mgorny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgorny/subscriptions","organizations_url":"https://api.github.com/users/mgorny/orgs","repos_url":"https://api.github.com/users/mgorny/repos","events_url":"https://api.github.com/users/mgorny/events{/privacy}","received_events_url":"https://api.github.com/users/mgorny/received_events","type":"User","site_admin":false},"body":"Also `==` is non-POSIX.","created_at":"2015-10-25T10:27:24Z","updated_at":"2015-10-25T10:27:24Z","html_url":"https://github.com/gentoo/gentoo/pull/137#discussion_r42943407","pull_request_url":"https://api.github.com/repos/gentoo/gentoo/pulls/137","_links":{"self":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/comments/42943407"},"html":{"href":"https://github.com/gentoo/gentoo/pull/137#discussion_r42943407"},"pull_request":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/gentoo/gentoo/pulls/137","id":46106325,"html_url":"https://github.com/gentoo/gentoo/pull/137","diff_url":"https://github.com/gentoo/gentoo/pull/137.diff","patch_url":"https://github.com/gentoo/gentoo/pull/137.patch","issue_url":"https://api.github.com/repos/gentoo/gentoo/issues/137","number":137,"state":"open","locked":false,"title":"net-misc/minidlna: Refactor OpenRC runscript","user":{"login":"jirutka","id":949228,"avatar_url":"https://avatars.githubusercontent.com/u/949228?v=3","gravatar_id":"","url":"https://api.github.com/users/jirutka","html_url":"https://github.com/jirutka","followers_url":"https://api.github.com/users/jirutka/followers","following_url":"https://api.github.com/users/jirutka/following{/other_user}","gists_url":"https://api.github.com/users/jirutka/gists{/gist_id}","starred_url":"https://api.github.com/users/jirutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirutka/subscriptions","organizations_url":"https://api.github.com/users/jirutka/orgs","repos_url":"https://api.github.com/users/jirutka/repos","events_url":"https://api.github.com/users/jirutka/events{/privacy}","received_events_url":"https://api.github.com/users/jirutka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-27T18:53:32Z","updated_at":"2015-10-25T10:27:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b021111a0391060f0564ff35176976348d26a3dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gentoo/gentoo/pulls/137/commits","review_comments_url":"https://api.github.com/repos/gentoo/gentoo/pulls/137/comments","review_comment_url":"https://api.github.com/repos/gentoo/gentoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gentoo/gentoo/issues/137/comments","statuses_url":"https://api.github.com/repos/gentoo/gentoo/statuses/1e4f959d3c646b796735a647c0d18b0bd017d81f","head":{"label":"jirutka:minidlna-improve-init","ref":"minidlna-improve-init","sha":"1e4f959d3c646b796735a647c0d18b0bd017d81f","user":{"login":"jirutka","id":949228,"avatar_url":"https://avatars.githubusercontent.com/u/949228?v=3","gravatar_id":"","url":"https://api.github.com/users/jirutka","html_url":"https://github.com/jirutka","followers_url":"https://api.github.com/users/jirutka/followers","following_url":"https://api.github.com/users/jirutka/following{/other_user}","gists_url":"https://api.github.com/users/jirutka/gists{/gist_id}","starred_url":"https://api.github.com/users/jirutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirutka/subscriptions","organizations_url":"https://api.github.com/users/jirutka/orgs","repos_url":"https://api.github.com/users/jirutka/repos","events_url":"https://api.github.com/users/jirutka/events{/privacy}","received_events_url":"https://api.github.com/users/jirutka/received_events","type":"User","site_admin":false},"repo":{"id":41642890,"name":"gentoo","full_name":"jirutka/gentoo","owner":{"login":"jirutka","id":949228,"avatar_url":"https://avatars.githubusercontent.com/u/949228?v=3","gravatar_id":"","url":"https://api.github.com/users/jirutka","html_url":"https://github.com/jirutka","followers_url":"https://api.github.com/users/jirutka/followers","following_url":"https://api.github.com/users/jirutka/following{/other_user}","gists_url":"https://api.github.com/users/jirutka/gists{/gist_id}","starred_url":"https://api.github.com/users/jirutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirutka/subscriptions","organizations_url":"https://api.github.com/users/jirutka/orgs","repos_url":"https://api.github.com/users/jirutka/repos","events_url":"https://api.github.com/users/jirutka/events{/privacy}","received_events_url":"https://api.github.com/users/jirutka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jirutka/gentoo","description":"The official mirror the Gentoo ebuild repository (now in true git!)","fork":true,"url":"https://api.github.com/repos/jirutka/gentoo","forks_url":"https://api.github.com/repos/jirutka/gentoo/forks","keys_url":"https://api.github.com/repos/jirutka/gentoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jirutka/gentoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jirutka/gentoo/teams","hooks_url":"https://api.github.com/repos/jirutka/gentoo/hooks","issue_events_url":"https://api.github.com/repos/jirutka/gentoo/issues/events{/number}","events_url":"https://api.github.com/repos/jirutka/gentoo/events","assignees_url":"https://api.github.com/repos/jirutka/gentoo/assignees{/user}","branches_url":"https://api.github.com/repos/jirutka/gentoo/branches{/branch}","tags_url":"https://api.github.com/repos/jirutka/gentoo/tags","blobs_url":"https://api.github.com/repos/jirutka/gentoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jirutka/gentoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jirutka/gentoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/jirutka/gentoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jirutka/gentoo/statuses/{sha}","languages_url":"https://api.github.com/repos/jirutka/gentoo/languages","stargazers_url":"https://api.github.com/repos/jirutka/gentoo/stargazers","contributors_url":"https://api.github.com/repos/jirutka/gentoo/contributors","subscribers_url":"https://api.github.com/repos/jirutka/gentoo/subscribers","subscription_url":"https://api.github.com/repos/jirutka/gentoo/subscription","commits_url":"https://api.github.com/repos/jirutka/gentoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/jirutka/gentoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/jirutka/gentoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/jirutka/gentoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/jirutka/gentoo/contents/{+path}","compare_url":"https://api.github.com/repos/jirutka/gentoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jirutka/gentoo/merges","archive_url":"https://api.github.com/repos/jirutka/gentoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jirutka/gentoo/downloads","issues_url":"https://api.github.com/repos/jirutka/gentoo/issues{/number}","pulls_url":"https://api.github.com/repos/jirutka/gentoo/pulls{/number}","milestones_url":"https://api.github.com/repos/jirutka/gentoo/milestones{/number}","notifications_url":"https://api.github.com/repos/jirutka/gentoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jirutka/gentoo/labels{/name}","releases_url":"https://api.github.com/repos/jirutka/gentoo/releases{/id}","created_at":"2015-08-30T20:58:27Z","updated_at":"2015-08-30T21:00:07Z","pushed_at":"2015-10-15T13:25:06Z","git_url":"git://github.com/jirutka/gentoo.git","ssh_url":"git@github.com:jirutka/gentoo.git","clone_url":"https://github.com/jirutka/gentoo.git","svn_url":"https://github.com/jirutka/gentoo","homepage":null,"size":85786,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gentoo:master","ref":"master","sha":"c5f30611b1cd0ffb13295d45262628b43e3e8c5a","user":{"login":"gentoo","id":52242,"avatar_url":"https://avatars.githubusercontent.com/u/52242?v=3","gravatar_id":"","url":"https://api.github.com/users/gentoo","html_url":"https://github.com/gentoo","followers_url":"https://api.github.com/users/gentoo/followers","following_url":"https://api.github.com/users/gentoo/following{/other_user}","gists_url":"https://api.github.com/users/gentoo/gists{/gist_id}","starred_url":"https://api.github.com/users/gentoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentoo/subscriptions","organizations_url":"https://api.github.com/users/gentoo/orgs","repos_url":"https://api.github.com/users/gentoo/repos","events_url":"https://api.github.com/users/gentoo/events{/privacy}","received_events_url":"https://api.github.com/users/gentoo/received_events","type":"Organization","site_admin":false},"repo":{"id":40499714,"name":"gentoo","full_name":"gentoo/gentoo","owner":{"login":"gentoo","id":52242,"avatar_url":"https://avatars.githubusercontent.com/u/52242?v=3","gravatar_id":"","url":"https://api.github.com/users/gentoo","html_url":"https://github.com/gentoo","followers_url":"https://api.github.com/users/gentoo/followers","following_url":"https://api.github.com/users/gentoo/following{/other_user}","gists_url":"https://api.github.com/users/gentoo/gists{/gist_id}","starred_url":"https://api.github.com/users/gentoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentoo/subscriptions","organizations_url":"https://api.github.com/users/gentoo/orgs","repos_url":"https://api.github.com/users/gentoo/repos","events_url":"https://api.github.com/users/gentoo/events{/privacy}","received_events_url":"https://api.github.com/users/gentoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gentoo/gentoo","description":"The official mirror the Gentoo ebuild repository (now in true git!)","fork":false,"url":"https://api.github.com/repos/gentoo/gentoo","forks_url":"https://api.github.com/repos/gentoo/gentoo/forks","keys_url":"https://api.github.com/repos/gentoo/gentoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gentoo/gentoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gentoo/gentoo/teams","hooks_url":"https://api.github.com/repos/gentoo/gentoo/hooks","issue_events_url":"https://api.github.com/repos/gentoo/gentoo/issues/events{/number}","events_url":"https://api.github.com/repos/gentoo/gentoo/events","assignees_url":"https://api.github.com/repos/gentoo/gentoo/assignees{/user}","branches_url":"https://api.github.com/repos/gentoo/gentoo/branches{/branch}","tags_url":"https://api.github.com/repos/gentoo/gentoo/tags","blobs_url":"https://api.github.com/repos/gentoo/gentoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gentoo/gentoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gentoo/gentoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/gentoo/gentoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gentoo/gentoo/statuses/{sha}","languages_url":"https://api.github.com/repos/gentoo/gentoo/languages","stargazers_url":"https://api.github.com/repos/gentoo/gentoo/stargazers","contributors_url":"https://api.github.com/repos/gentoo/gentoo/contributors","subscribers_url":"https://api.github.com/repos/gentoo/gentoo/subscribers","subscription_url":"https://api.github.com/repos/gentoo/gentoo/subscription","commits_url":"https://api.github.com/repos/gentoo/gentoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/gentoo/gentoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/gentoo/gentoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/gentoo/gentoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/gentoo/gentoo/contents/{+path}","compare_url":"https://api.github.com/repos/gentoo/gentoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gentoo/gentoo/merges","archive_url":"https://api.github.com/repos/gentoo/gentoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gentoo/gentoo/downloads","issues_url":"https://api.github.com/repos/gentoo/gentoo/issues{/number}","pulls_url":"https://api.github.com/repos/gentoo/gentoo/pulls{/number}","milestones_url":"https://api.github.com/repos/gentoo/gentoo/milestones{/number}","notifications_url":"https://api.github.com/repos/gentoo/gentoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gentoo/gentoo/labels{/name}","releases_url":"https://api.github.com/repos/gentoo/gentoo/releases{/id}","created_at":"2015-08-10T18:47:32Z","updated_at":"2015-10-21T16:08:15Z","pushed_at":"2015-10-25T09:35:02Z","git_url":"git://github.com/gentoo/gentoo.git","ssh_url":"git@github.com:gentoo/gentoo.git","clone_url":"https://github.com/gentoo/gentoo.git","svn_url":"https://github.com/gentoo/gentoo","homepage":null,"size":112747,"stargazers_count":154,"watchers_count":154,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":30,"forks":96,"open_issues":30,"watchers":154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/137"},"html":{"href":"https://github.com/gentoo/gentoo/pull/137"},"issue":{"href":"https://api.github.com/repos/gentoo/gentoo/issues/137"},"comments":{"href":"https://api.github.com/repos/gentoo/gentoo/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gentoo/gentoo/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/gentoo/gentoo/statuses/1e4f959d3c646b796735a647c0d18b0bd017d81f"}}}}