{"action":"opened","issue":{"url":"https://api.github.com/repos/jjasghar/rabbitmq/issues/264","labels_url":"https://api.github.com/repos/jjasghar/rabbitmq/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/jjasghar/rabbitmq/issues/264/comments","events_url":"https://api.github.com/repos/jjasghar/rabbitmq/issues/264/events","html_url":"https://github.com/jjasghar/rabbitmq/issues/264","id":73429636,"number":264,"title":"Alternate restarts fail on CentOS","user":{"login":"dparne","id":1863682,"avatar_url":"https://avatars.githubusercontent.com/u/1863682?v=3","gravatar_id":"","url":"https://api.github.com/users/dparne","html_url":"https://github.com/dparne","followers_url":"https://api.github.com/users/dparne/followers","following_url":"https://api.github.com/users/dparne/following{/other_user}","gists_url":"https://api.github.com/users/dparne/gists{/gist_id}","starred_url":"https://api.github.com/users/dparne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dparne/subscriptions","organizations_url":"https://api.github.com/users/dparne/orgs","repos_url":"https://api.github.com/users/dparne/repos","events_url":"https://api.github.com/users/dparne/events{/privacy}","received_events_url":"https://api.github.com/users/dparne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T20:56:26Z","updated_at":"2015-05-05T20:56:26Z","closed_at":null,"body":"I noticed an issue with SELinux enforced CentOS.\r\n\r\nSince the \"rabbitmq.upstart.conf.erb\" template has the PID_FILE hardcoded to \"/var/run/rabbitmq/pid\". The startup script \"/etc/init.d/rabbitmq-server\" is not able to create the directory \"/var/run/rabbitmq\" and I am getting an error when I run \"service rabbitmq-server restart\" every other time. It turned out to be that it could not find which process to kill.\r\n\r\nThis seems to be happening because of the security context of the \"/var/run\" folder restricting the startup script to be able to create that folder.\r\n\r\nIdeally it would be nice if that value where we wanna store the PID_FILE is an attribute. "}}