Harel Malka | 2 Oct 2010 14:25
Favicon

Re: django celery, buildout and daemonize

Bram,
it doesn't get faster than this  (where USER:GROUP is your celery user
and group):

sudo chown USER:GROUP /var/run/celeryd.pid
sudo chown USER:GROUP /var/log/celeryd.log

for beat:
sudo chown USER:GROUP /var/log/celerybeat.log
sudo chown USER:GROUP /var/run/celerybeat.pid

I've assumed default paths for both files.

On Sat, Oct 2, 2010 at 12:47 PM, Bram Enning <bramenning@...> wrote:
> Of course you are right. But I'm in a hurry :)
>
> It's solved now. The init-script used different variable-names than the
> celeryd file in /etc/default named. In particular it was CELERY_PID_FILE and
> CELERY_LOG_FILE instead of CELERY_PIDFILE and CELERY_LOGFILE.
>
> now celery runs as nonroot!
>
> On Sat, Oct 2, 2010 at 12:55 PM, Ask Solem <askh@...> wrote:
>>
>> On Oct 2, 2010, at 11:37 AM, Bram Enning wrote:
>>
>> > Hi Harel,
>> >
>> > thanks for your pointers! I'm in a hurry so I choose the easy option
>> > (changing the non-root user to root) and that gave me immediate succes! So
>> > you're probably right about the user not being able to acces the pid or
>> > logfile.
>> >
>>
>> I really don't think you should be running celeryd as root!
>>
>> I don't know of any current flaws, but I know enough of about security to
>> know that
>> it would be incredibly naive to think that there couldn't be.
>>
>> I'm thinking maybe even celeryd should emit a warning message if running
>> as root.
>>
>> The init script has CELERYD_USER and CELERYD_GROUP options you can set in
>> /etc/default/celeryd. For that to work you probably also have to change
>> the path of CELERYD_LOG_FILE.
>>
>>
>>
>> --
>> {Ask Solem,
>>  Developer ~ Webteam,
>>  Opera Software,
>>  +47 98435213 | twitter.com/asksol }.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "celery-users" group.
>> To post to this group, send email to celery-users@...
>> To unsubscribe from this group, send email to
>> celery-users+unsubscribe@...
>> For more options, visit this group at
>> http://groups.google.com/group/celery-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "celery-users" group.
> To post to this group, send email to celery-users@...
> To unsubscribe from this group, send email to
> celery-users+unsubscribe@...
> For more options, visit this group at
> http://groups.google.com/group/celery-users?hl=en.
>

--

-- 
You received this message because you are subscribed to the Google Groups "celery-users" group.
To post to this group, send email to celery-users@...
To unsubscribe from this group, send email to celery-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/celery-users?hl=en.


Gmane