{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/71","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/71/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/71/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/71","id":62167160,"number":71,"title":"rabbitmq-server.ocf deletes /var/run/rabbitmq directory","user":{"login":"jmcmeek","id":11507505,"avatar_url":"https://avatars.githubusercontent.com/u/11507505?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcmeek","html_url":"https://github.com/jmcmeek","followers_url":"https://api.github.com/users/jmcmeek/followers","following_url":"https://api.github.com/users/jmcmeek/following{/other_user}","gists_url":"https://api.github.com/users/jmcmeek/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcmeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcmeek/subscriptions","organizations_url":"https://api.github.com/users/jmcmeek/orgs","repos_url":"https://api.github.com/users/jmcmeek/repos","events_url":"https://api.github.com/users/jmcmeek/events{/privacy}","received_events_url":"https://api.github.com/users/jmcmeek/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":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T18:13:49Z","updated_at":"2015-03-25T15:53:01Z","closed_at":null,"body":"When the rabbitmq-server pacemaker resource agent deletes the pid file, it also deletes the entire /var/run/rabbitmq directory.   On RHEL 7, using the systemctl service, if I want to use systemctl to work with the resource after using pacemaker, I have to recreate that directory and set the owner before I can start rabbitmq-server as a service again."},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments/86093112","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/71#issuecomment-86093112","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/71","id":86093112,"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-03-25T15:53:01Z","updated_at":"2015-03-25T15:53:01Z","body":"The init script is supposed to create `/var/run/rabbitmq` on startup and delete it on shutdown, like the OCF Resource Agent script. See:\r\n* [`packaging/RPMS/Fedora/rabbitmq-server.init`, line 42](https://github.com/rabbitmq/rabbitmq-server/blob/stable/packaging/RPMS/Fedora/rabbitmq-server.init#L42)\r\n* [`packaging/RPMS/Fedora/rabbitmq-server.init`, line 62](https://github.com/rabbitmq/rabbitmq-server/blob/stable/packaging/RPMS/Fedora/rabbitmq-server.init#L62)\r\n\r\nI tested this again on Fedora 21 with RabbitMQ 3.5.0 RPM downloaded from www.rabbitmq.com and it worked. What version of RabbitMQ are you using?"}}