brianlmoon / GearmanManager

PHP daemon for managing gearman workers
http://brian.moonspot.net/GearmanManager
BSD 2-Clause "Simplified" License
682 stars 190 forks source link

Can not set the group of a file #111

Closed pietervogelaar closed 7 years ago

pietervogelaar commented 9 years ago

I have a user called "deploy" and added that user to the group "www-data".

If I executed my PHP script directly on the command line with the deploy user, the PHP script can create a file with the owner "deploy" and the group "www-data". However, if the same script is run through a gearman manager worker, the file will have the owner "deploy", but the group is "root".

I set "deploy" as value for the user variable in /etc/init.d/gearman-manager.

Is there a bug, or am I doing something wrong?