{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/comments/62347678","id":62347678,"diff_hunk":"@@ -4,12 +4,16 @@\n \n # On upgrade, we should restart the service if it's running\n if [ $1 = 'configure' -a -n $2 ] ; then\n-  if [ -x '/etc/init.d/<%= EZBake::Config[:project] %>' ] ; then\n-    # Using sysv\n-    invoke-rc.d <%= EZBake::Config[:project] %> try-restart || :\n-  elif [ -x /bin/systemctl ] ; then\n+  if [ -e \"/lib/systemd/system/<%= EZBake::Config[:project] -%>.service\" ] ; then\n     # Using systemd\n+    if [ -e '/etc/init.d/<%= EZBake::Config[:project] %>' ] ; then\n+      # We need to clean up the old sysv files if they still exist\n+      rm '/etc/init.d/<%= EZBake::Config[:project] %>'","path":"resources/puppetlabs/lein-ezbake/template/foss/ext/debian/postinst.erb","position":12,"original_position":12,"commit_id":"a190340a3ee70d673789804c591ac63103f6b113","original_commit_id":"a190340a3ee70d673789804c591ac63103f6b113","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"body":"which we definitely don't want...","created_at":"2016-05-06T15:42:28Z","updated_at":"2016-05-06T15:42:28Z","html_url":"https://github.com/puppetlabs/ezbake/pull/307#discussion_r62347678","pull_request_url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/comments/62347678"},"html":{"href":"https://github.com/puppetlabs/ezbake/pull/307#discussion_r62347678"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307","id":69068974,"html_url":"https://github.com/puppetlabs/ezbake/pull/307","diff_url":"https://github.com/puppetlabs/ezbake/pull/307.diff","patch_url":"https://github.com/puppetlabs/ezbake/pull/307.patch","issue_url":"https://api.github.com/repos/puppetlabs/ezbake/issues/307","number":307,"state":"open","locked":false,"title":"(EZ-48) Add support for debian systemd","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-05T20:55:15Z","updated_at":"2016-05-06T15:42:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf5106c7a533e9c536f9e4e9760360fa1f879406","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/ezbake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/ezbake/issues/307/comments","statuses_url":"https://api.github.com/repos/puppetlabs/ezbake/statuses/a190340a3ee70d673789804c591ac63103f6b113","head":{"label":"melissa:ticket/master/debian-systemd","ref":"ticket/master/debian-systemd","sha":"a190340a3ee70d673789804c591ac63103f6b113","user":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"repo":{"id":52107640,"name":"ezbake","full_name":"melissa/ezbake","owner":{"login":"melissa","id":4473089,"avatar_url":"https://avatars.githubusercontent.com/u/4473089?v=3","gravatar_id":"","url":"https://api.github.com/users/melissa","html_url":"https://github.com/melissa","followers_url":"https://api.github.com/users/melissa/followers","following_url":"https://api.github.com/users/melissa/following{/other_user}","gists_url":"https://api.github.com/users/melissa/gists{/gist_id}","starred_url":"https://api.github.com/users/melissa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissa/subscriptions","organizations_url":"https://api.github.com/users/melissa/orgs","repos_url":"https://api.github.com/users/melissa/repos","events_url":"https://api.github.com/users/melissa/events{/privacy}","received_events_url":"https://api.github.com/users/melissa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/melissa/ezbake","description":"A build system for trapperkeeper applications","fork":true,"url":"https://api.github.com/repos/melissa/ezbake","forks_url":"https://api.github.com/repos/melissa/ezbake/forks","keys_url":"https://api.github.com/repos/melissa/ezbake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/melissa/ezbake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/melissa/ezbake/teams","hooks_url":"https://api.github.com/repos/melissa/ezbake/hooks","issue_events_url":"https://api.github.com/repos/melissa/ezbake/issues/events{/number}","events_url":"https://api.github.com/repos/melissa/ezbake/events","assignees_url":"https://api.github.com/repos/melissa/ezbake/assignees{/user}","branches_url":"https://api.github.com/repos/melissa/ezbake/branches{/branch}","tags_url":"https://api.github.com/repos/melissa/ezbake/tags","blobs_url":"https://api.github.com/repos/melissa/ezbake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/melissa/ezbake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/melissa/ezbake/git/refs{/sha}","trees_url":"https://api.github.com/repos/melissa/ezbake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/melissa/ezbake/statuses/{sha}","languages_url":"https://api.github.com/repos/melissa/ezbake/languages","stargazers_url":"https://api.github.com/repos/melissa/ezbake/stargazers","contributors_url":"https://api.github.com/repos/melissa/ezbake/contributors","subscribers_url":"https://api.github.com/repos/melissa/ezbake/subscribers","subscription_url":"https://api.github.com/repos/melissa/ezbake/subscription","commits_url":"https://api.github.com/repos/melissa/ezbake/commits{/sha}","git_commits_url":"https://api.github.com/repos/melissa/ezbake/git/commits{/sha}","comments_url":"https://api.github.com/repos/melissa/ezbake/comments{/number}","issue_comment_url":"https://api.github.com/repos/melissa/ezbake/issues/comments{/number}","contents_url":"https://api.github.com/repos/melissa/ezbake/contents/{+path}","compare_url":"https://api.github.com/repos/melissa/ezbake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/melissa/ezbake/merges","archive_url":"https://api.github.com/repos/melissa/ezbake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/melissa/ezbake/downloads","issues_url":"https://api.github.com/repos/melissa/ezbake/issues{/number}","pulls_url":"https://api.github.com/repos/melissa/ezbake/pulls{/number}","milestones_url":"https://api.github.com/repos/melissa/ezbake/milestones{/number}","notifications_url":"https://api.github.com/repos/melissa/ezbake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/melissa/ezbake/labels{/name}","releases_url":"https://api.github.com/repos/melissa/ezbake/releases{/id}","deployments_url":"https://api.github.com/repos/melissa/ezbake/deployments","created_at":"2016-02-19T18:26:12Z","updated_at":"2016-02-19T18:26:13Z","pushed_at":"2016-05-05T23:19:13Z","git_url":"git://github.com/melissa/ezbake.git","ssh_url":"git@github.com:melissa/ezbake.git","clone_url":"https://github.com/melissa/ezbake.git","svn_url":"https://github.com/melissa/ezbake","homepage":null,"size":822,"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":"puppetlabs:master","ref":"master","sha":"6d30089c693137216e90916e9bb996b8efcda4d9","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17420671,"name":"ezbake","full_name":"puppetlabs/ezbake","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/ezbake","description":"A build system for trapperkeeper applications","fork":false,"url":"https://api.github.com/repos/puppetlabs/ezbake","forks_url":"https://api.github.com/repos/puppetlabs/ezbake/forks","keys_url":"https://api.github.com/repos/puppetlabs/ezbake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/ezbake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/ezbake/teams","hooks_url":"https://api.github.com/repos/puppetlabs/ezbake/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/ezbake/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/ezbake/events","assignees_url":"https://api.github.com/repos/puppetlabs/ezbake/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/ezbake/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/ezbake/tags","blobs_url":"https://api.github.com/repos/puppetlabs/ezbake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/ezbake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/ezbake/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/ezbake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/ezbake/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/ezbake/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/ezbake/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/ezbake/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/ezbake/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/ezbake/subscription","commits_url":"https://api.github.com/repos/puppetlabs/ezbake/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/ezbake/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/ezbake/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/ezbake/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/ezbake/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/ezbake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/ezbake/merges","archive_url":"https://api.github.com/repos/puppetlabs/ezbake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/ezbake/downloads","issues_url":"https://api.github.com/repos/puppetlabs/ezbake/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/ezbake/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/ezbake/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/ezbake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/ezbake/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/ezbake/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/ezbake/deployments","created_at":"2014-03-04T23:09:28Z","updated_at":"2016-02-04T01:34:13Z","pushed_at":"2016-05-06T13:31:29Z","git_url":"git://github.com/puppetlabs/ezbake.git","ssh_url":"git@github.com:puppetlabs/ezbake.git","clone_url":"https://github.com/puppetlabs/ezbake.git","svn_url":"https://github.com/puppetlabs/ezbake","homepage":null,"size":914,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307"},"html":{"href":"https://github.com/puppetlabs/ezbake/pull/307"},"issue":{"href":"https://api.github.com/repos/puppetlabs/ezbake/issues/307"},"comments":{"href":"https://api.github.com/repos/puppetlabs/ezbake/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/ezbake/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/ezbake/statuses/a190340a3ee70d673789804c591ac63103f6b113"}}}}