{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/126","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/126/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/126/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/126","id":70111879,"number":126,"title":"Debian init script: RABBITMQ_PID_FILE is used before being set","user":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels/effort-tiny","name":"effort-tiny","color":"a8d1ff"}],"state":"closed","locked":false,"assignee":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/milestones/4","html_url":"https://github.com/rabbitmq/rabbitmq-server/milestones/3.5.2","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/milestones/4/labels","id":1051515,"number":4,"title":"3.5.2","description":null,"creator":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":13,"state":"open","created_at":"2015-04-03T08:30:05Z","updated_at":"2015-05-11T08:04:17Z","due_on":"2015-05-06T12:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-22T12:25:31Z","updated_at":"2015-05-11T11:15:26Z","closed_at":"2015-04-22T16:36:07Z","body":"In the Debian init script:\r\n```sh\r\nRABBITMQ_PID_FILE=$PID_FILE start-stop-daemon --quiet \\\r\n    --chuid rabbitmq --start --exec $DAEMON \\\r\n    --pidfile \"$RABBITMQ_PID_FILE\" --background\r\n```\r\n\r\n`$RABBITMQ_PID_FILE` is used as an argument ro `--pidfile` but it is unset.\r\n\r\nThe `RABBITMQ_PID_FILE=$PID_FILE` on the same line only sets the value in the environment of the forked process (here, `start-stop-daemon`)."},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments/100872276","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/126#issuecomment-100872276","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/126","id":100872276,"user":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T11:15:26Z","updated_at":"2015-05-11T11:15:26Z","body":"Since RabbitMQ 2.8.2."}}