6 守护

Linux, FreeBSD, OpenBSD, and other Unix-like platforms.

init

celeryd

Usage: /etc/init.d/celeryd {start|stop|restart|status}
Configuration file: /etc/default/celeryd

需要root权限,如果没有权限则可以使用:

celery multi start worker1
-A proj
--pidfile="$HOME/run/celery/%n.pid"
--logfile="$HOME/log/celery/%n%I.log"

celery multi restart worker1
-A proj
--logfile="$HOME/log/celery/%n%I.log"
--pidfile="$HOME/run/celery/%n.pid

celery multi stopwait worker1 --pidfile="$HOME/run/celery/%n.pid"

celerybeat

Usage:
/etc/init.d/celerybeat {start|stop|restart}

Configuration file: /etc/default/celerybeat or /etc/default/celeryd

systemd

supervisord

launchd

.

你可能感兴趣的:(6 守护)