Hi,
On Fri, Oct 31, 2008 at 01:33:57PM +0200, Marian Marinov wrote:
> Hello,
> I have just configured heartbeat-2.99.2-3.1
>
> I'm removing /etc/ha.d/haresources because I want to use V2 and not to see
> this annoying log message:
> Oct 31 06:04:02 lb heartbeat: [31612]: WARN: File /etc/ha.d/haresources
> exists.
> Oct 31 06:04:02 lb heartbeat: [31612]: WARN: This file is not used because
> crm
> is enabled
> Oct 31 06:04:02 lb heartbeat: [31612]: WARN: Logging daemon is
> disabled --enabling logging daemon is recommended
>
> So far everything is fine, but I started to see another annoying message:
> [EMAIL PROTECTED] ha.d]# /etc/init.d/heartbeat start
> Starting High-Availability services:
> cat: /etc/ha.d/haresources: No such file or directory
> [ OK ]
> [EMAIL PROTECTED] ha.d]#
>
> I found the script that was causing this message, it was:
> /usr/share/heartbeat/ResourceManager
Interesting. Perhaps the init script needs some fixing too.
> So I simply added a check before this cat, to see if the file exists.
> Here is my patch:
>
> [EMAIL PROTECTED] heartbeat]# diff -upN ResourceManager ResourceManager.old
> --- ResourceManager 2008-10-31 06:27:21.000000000 -0500
> +++ ResourceManager.old 2008-10-31 06:28:22.000000000 -0500
> @@ -92,8 +92,7 @@ ipres() {
> 1) pat=$1 ;;
> 2) grepflags=$1; pat=$2 ;;
> esac
> - if [ -f $HA_DIR/haresources ]; then
> - cat $HA_DIR/haresources |
> + cat $HA_DIR/haresources |
> #
> # Explanation of Sed -e expressions below:
> #
> @@ -115,7 +114,6 @@ ipres() {
> -e 's%^ %%' |
> awk '/.*/ {$1 = tolower($1); print $0, ""}' |
> grep $grepflags "$pat"
> - fi
> }
Applied.
Cheers,
Dejan
>
> ipresline() {
>
>
> Best regards
> Marian Marinov
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems