Re: BUG in PID dir creation???

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

 



On 09/08/2013 04:49 AM, Jakov Sosic wrote:

Should I file a bug report ?!

This is a fixed patch:

--- /usr/share/cluster/utils/config-utils.sh.orig 2013-09-08 04:48:47.000000000 +0200 +++ /usr/share/cluster/utils/config-utils.sh 2013-09-08 04:51:31.000000000 +0200
@@ -225,12 +225,12 @@
 	declare program_name="$(basename $0 | sed 's/^\(.*\)\..*/\1/')"
 	declare dirname="$RA_COMMON_pid_dir/$program_name"

-	if [ -d "$dirname" ]; then
+	if [ -d "$dirname/$OCF_RESOURCE_INSTANCE" ]; then
 		return 0;
 	fi
 	
 	chmod 711 "$RA_COMMON_pid_dir"
-	mkdir -p "$dirname"
+	mkdir -p "$dirname/$OCF_RESOURCE_INSTANCE"
 	
 	if [ "$program_name" = "mysql" ]; then
 		chown mysql.root "$dirname"



--
Jakov Sosic
www.srce.unizg.hr

--
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