{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/packages/issues/2490","repository_url":"https://api.github.com/repos/openwrt/packages","labels_url":"https://api.github.com/repos/openwrt/packages/issues/2490/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/packages/issues/2490/comments","events_url":"https://api.github.com/repos/openwrt/packages/issues/2490/events","html_url":"https://github.com/openwrt/packages/pull/2490","id":140416288,"number":2490,"title":"Check if p910nd daemon is already running and don't start if it is.","user":{"login":"mmehnert","id":147316,"avatar_url":"https://avatars.githubusercontent.com/u/147316?v=3","gravatar_id":"","url":"https://api.github.com/users/mmehnert","html_url":"https://github.com/mmehnert","followers_url":"https://api.github.com/users/mmehnert/followers","following_url":"https://api.github.com/users/mmehnert/following{/other_user}","gists_url":"https://api.github.com/users/mmehnert/gists{/gist_id}","starred_url":"https://api.github.com/users/mmehnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmehnert/subscriptions","organizations_url":"https://api.github.com/users/mmehnert/orgs","repos_url":"https://api.github.com/users/mmehnert/repos","events_url":"https://api.github.com/users/mmehnert/events{/privacy}","received_events_url":"https://api.github.com/users/mmehnert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-12T20:56:32Z","updated_at":"2016-03-13T17:00:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openwrt/packages/pulls/2490","html_url":"https://github.com/openwrt/packages/pull/2490","diff_url":"https://github.com/openwrt/packages/pull/2490.diff","patch_url":"https://github.com/openwrt/packages/pull/2490.patch"},"body":"I created a hotplug.d script that (re)starts the p910nd daemon in case I plug in my usb printer because it did not start automatically if the printer was off during the start of the openwrt device.\r\nSomehow I ended up with two instances of the daemon - even though I used the \"restart\" option.\r\nOne of them was not stoppable via the init script since the pid file was overwritten by the second instance.\r\n\r\nAnyway. Those three lines prevent starting the daemon for the same device twice."},"comment":{"url":"https://api.github.com/repos/openwrt/packages/issues/comments/196000120","html_url":"https://github.com/openwrt/packages/pull/2490#issuecomment-196000120","issue_url":"https://api.github.com/repos/openwrt/packages/issues/2490","id":196000120,"user":{"login":"yousong","id":4948057,"avatar_url":"https://avatars.githubusercontent.com/u/4948057?v=3","gravatar_id":"","url":"https://api.github.com/users/yousong","html_url":"https://github.com/yousong","followers_url":"https://api.github.com/users/yousong/followers","following_url":"https://api.github.com/users/yousong/following{/other_user}","gists_url":"https://api.github.com/users/yousong/gists{/gist_id}","starred_url":"https://api.github.com/users/yousong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yousong/subscriptions","organizations_url":"https://api.github.com/users/yousong/orgs","repos_url":"https://api.github.com/users/yousong/repos","events_url":"https://api.github.com/users/yousong/events{/privacy}","received_events_url":"https://api.github.com/users/yousong/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T17:00:54Z","updated_at":"2016-03-13T17:00:54Z","body":"Ahh, that should be it.  that instance daemonizes by forking then quit itself.  procd only tracks its child processes by pid.  If i read the manual page right,you need to specify \"-d\" option for those instances."}}