Homegear-management creates folder with wrong permissions

Hi

I just have installed homegear-management.

homegear-management will start before homegear. If not existing already it will create the folder /var/run/homegear with below permissions:

ls -al /var/run/homegear/
total 4
drwxrwx---  2 root root  60 Jul  4 13:45 . <<<<<<<<<<<<<<<<<<<<
drwxr-xr-x 24 root root 820 Jul  4 13:52 ..
-rw-r--r--  1 root root   3 Jul  4 13:45 homegear-management.pid

this will prevent homegear to store data inside. from an older installation I see that the persmissions look like:

ls -al /var/run/homegear/
total 8
drwxrwx---  2 homegear homegear 160 Jul  4 10:56 . <<<<<<<<<<<<<<<<<<<<
drwxr-xr-x 25 root     root     800 Jul  4 11:52 ..
srwxrwx---  1 homegear homegear   0 Jul  4 10:56 homegearFE.sock
srwxrwx---  1 homegear homegear   0 Jul  4 10:56 homegearIPC.sock
-rw-r--r--  1 root     root       3 Jul  4 10:55 homegear-management.pid
-rw-r--r--  1 homegear homegear   3 Jul  4 10:55 homegear.pid
srwxrwx---  1 homegear homegear   0 Jul  4 10:55 homegearSE.sock
srwxrwx---  1 homegear homegear   0 Jul  4 10:56 homegear.sock

as a result homegear will not start. after changing the permissions it start without any problems

cheers

Might it be that homegear-management is started after Homegear overwriting the permissions previously set? Both processes set the permissions on /var/run/homegear on startup Homegear to homegear:homegear and Homegear Management to root:root. So there is a race condition. It’s fixed in the next nightly.

Cheers and thank you!!!

Sathya