public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] heartbeat problem
@ 2012-10-16 16:53 Petric Frank
  2012-10-16 20:39 ` lists
  0 siblings, 1 reply; 2+ messages in thread
From: Petric Frank @ 2012-10-16 16:53 UTC (permalink / raw
  To: gentoo-user

Hello,

i've tried to use heartbeat (v 3.0.5). It starts, but a bit later it kills 
himself.
I complains that it can not access /var/run/heartbeat/*.pid which is true. The 
directory /var/run/heartbeat does not exist.
Also - as far as i can see /var/run is cleaned at start of a system. So any 
manually created directory here at install time will get lost.

As workaround i placed in /etc/init.d/heartbeat the following code:

----------------- cut -----------------
  if ! [ -d /var/run/heartbeat ]
  then
    mkdir /var/run/heartbeat
  fi
----------------- cut -----------------

With this change heartbeat starts without problems.

I don't know wheter this is the proper solution or the reason for this problem 
is caused by an other source.

Before i place an item in bugzilla i would like to know if you think this 
'hack' is the one to use.
Otherwise you could point mo to the proper solution of this issue.

regards
  Petric


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] heartbeat problem
  2012-10-16 16:53 [gentoo-user] heartbeat problem Petric Frank
@ 2012-10-16 20:39 ` lists
  0 siblings, 0 replies; 2+ messages in thread
From: lists @ 2012-10-16 20:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

There's already a tool to do exactly that: checkpath (see man 8
runscript), for example "checkpath -d -m 0770 -o
<user>:<group> /var/run/heartbeat, but apart from that, your fix seems
correct.

Regards,
Luis

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-16 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 16:53 [gentoo-user] heartbeat problem Petric Frank
2012-10-16 20:39 ` lists

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox