[Debian-ha-maintainers] Bug#883527: Bug#883527: Heartbeat / Debian 9: Missing directory "/var/run/resource-agents"

Michael Hofmann mh at ubhofmann.de
Wed Dec 20 11:34:15 UTC 2017


> Package: heartbeat
> Version: 1:3.0.6-5 on Debian 9
> 
> This directory should be created on boot by:
> 
>   /usr/lib/tmpfiles.d/heartbeat.conf
> 
> But perhaps this host is not using systemd?

Hi Valentin,

thanks for taking a look at this!

You're right: there is an entry in /usr/lib/tmpfiles.d/heartbeat.conf
and the directory is created on boot.

But the directory is not available after "apt-get install heartbeat".
And that's the problem. We would like to configure and use heartbeat
directly after installation and before a reboot.

The package "heartbeat" contains a script "heartbeat.postinst"
which creates the directories:
- /var/run/heartbeat/ccm
- /var/run/heartbeat/crm

But it does NOT create
- /var/run/resource-agents

The solution would probably be to add the lines below to
"heartbeat.postinst":

  mkdir -p "/var/run/resource-agents"
  chmod 0755 "/var/run/resource-agents"
  chown root "/var/run/resource-agents"
  chgrp root "/var/run/resource-agents"

Michael



More information about the Debian-ha-maintainers mailing list