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: TamTam Research
Subject: Re: [Fab-user] Help running a background Task: celery daemon
Date: Tue, 12 Jun 2012 14:30:21 +0200

Hi Ronan
Your fabtools looks very impressive. As I am planning for reorganization of my servers, I am considering using it too.

Couple of quiestions:
Jan


Jan Vlčinský
TamTam Research s.r.o.
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: address@hidden
http://cz.linkedin.com/in/vlcinsky



On 12 June 2012 14:07, 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

-----

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



reply via email to

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