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

Re: [Linux-cluster] BUG in PID dir creation???



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


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