+ Telegram bot: sign up, sign in, notifications + Anonymous users can't see yuan_rate_commission * Only logged in customers can create/update orders * Customer info migrated to separate User model * Renamed legacy fields in serializers * Cleanup in API classes
25 lines
862 B
Desktop File
25 lines
862 B
Desktop File
[Unit]
|
|
Description=Celery Service
|
|
After=network.target
|
|
Requires=redis.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=poizon
|
|
Group=poizon
|
|
EnvironmentFile=/etc/default/celery-stage
|
|
WorkingDirectory=/var/www/poizonstore-stage
|
|
RuntimeDirectory=celery
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi start $CELERYD_NODES \
|
|
--pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
|
|
--loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'
|
|
ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait $CELERYD_NODES \
|
|
--pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
|
|
--loglevel="${CELERYD_LOG_LEVEL}"'
|
|
ExecReload=/bin/sh -c '${CELERY_BIN} -A $CELERY_APP multi restart $CELERYD_NODES \
|
|
--pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} \
|
|
--loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS'
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |