ocf_log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi List,

i'm writing a custom resource agent. In the resource agent i try to
use the ocf_log funtions but they don't work as expected. When i run
the rgmanager in the foreground (clurgmgrd -df) i get all the message
i want. When running as a normal daemon i can't find my log entries.

The agent goes something like this

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin
. $(dirname $0)/ocf-shellfuncs

status() {
   ocf_log debug "status has been called (ocf_log)"
   logger -p local4.debug "status has been called (logger)"
}


the cluster.conf part

<rm log_level="7" log_facility="local4">
...


running in foreground i get both (ocf and logger) debug messages.
Running as a daemon i can find debug messages send by logger but no
messages send via ocf_log. The IP Resource agent (part of the same
service) shows up in the logfile.

Any Hints?

Greetings
   Christoph

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux