On Tue, Jun 12, 2012 at 6:55 AM, Amit Saha <[email protected]>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
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user