fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Help running a background Task: celery daemon


From: Amit Saha
Subject: Re: [Fab-user] Help running a background Task: celery daemon
Date: Wed, 13 Jun 2012 01:51:51 +1000

On Tue, Jun 12, 2012 at 10:07 PM, Ronan Amicel <address@hidden> wrote:
> On Tue, Jun 12, 2012 at 6:55 AM, Amit Saha <address@hidden>
> wrote:
>>
>> Hello:
>>
>> I want to run 'celeryd' (celery daemon) as a background process on a
>> remote machine. I have tried to follow the FAQ and also the issue
>> tracker comments [1] and tried this using:
>>
>> run('cd {0:s};nohup sudo celeryd --loglevel=INFO --logfile={1:s} >&
>> "/dev/null" < "/dev/null" &'.format(worker_workdir,log),pty=False)
>>
>> Is this correct? It doesn't seem to be working.
>
>
> I'd recommend running celeryd using supervisord: http://supervisord.org/
>
> It's just a few lines of code using fabtools:
> http://pypi.python.org/pypi/fabtools


Thanks for that. I shall see if I can use it in future. BTW, is it not
supported on Fedora? What is specific to Ubuntu? The automatic package
installation bit?

Thanks,
Amit
>
> -----
>
> from fabtools import require
>
> def setup:
>     # ...
>     require.supervisor.process('celery',
>         command='/path/to/celeryd --loglevel=INFO
> --logfile={0:s}'.format(log),
>         directory=worker_workdir,
>         user='myuser'
>         )
>     # ...
>
> -----
>
> --
> Ronan Amicel
>
> «« Twitter overload?
> »» Get your daily summary at http://focus.io/
>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
http://echorand.me



reply via email to

[Prev in Thread] Current Thread [Next in Thread]