escape % in crontab and dev.yml

pull/1/head
Raymond Yee 2016-06-22 15:55:42 -07:00
parent b840845335
commit f8411fe310
2 changed files with 2 additions and 2 deletions

View File

@ -21,4 +21,4 @@
# #
# m h dom mon dow command # m h dom mon dow command
* * * * * cd /opt/regluit; . /opt/regluit/ENV/bin/activate; /opt/regluit/ENV/bin/django-admin.py emit_notices --settings=regluit.settings.please > /opt/regluit/deploy/emit_notices.log 2>&1 ; touch /opt/regluit/deploy/last-cron * * * * * cd /opt/regluit; . /opt/regluit/ENV/bin/activate; /opt/regluit/ENV/bin/django-admin.py emit_notices --settings=regluit.settings.please > /opt/regluit/deploy/emit_notices.log 2>&1 ; touch /opt/regluit/deploy/last-cron
@reboot sudo mkdir /var/run/celery; sudo chown celery:celery /var/log/celery /var/run/celery; /opt/regluit/ENV/bin/celery multi restart w1 --logfile="/var/log/celery/%n.log" --pidfile="/var/log/celery/%n.pid"; /etc/init.d/celerybeat restart; @reboot sudo mkdir /var/run/celery; sudo chown celery:celery /var/log/celery /var/run/celery; /opt/regluit/ENV/bin/celery multi restart w1 --logfile="/var/log/celery/\%n.log" --pidfile="/var/log/celery/\%n.pid"; /etc/init.d/celerybeat restart;

View File

@ -382,7 +382,7 @@
# command: /etc/init.d/celeryd start # command: /etc/init.d/celeryd start
- name: start celery queue with celery multi - name: start celery queue with celery multi
command: /opt/regluit/ENV/bin/celery multi restart w1 --logfile=\"/var/log/celery/%n.log\" --pidfile=\"/var/log/celery/%n.pid\" command: /opt/regluit/ENV/bin/celery multi restart w1 --logfile=\"/var/log/celery/%%n.log\" --pidfile=\"/var/log/celery/%%n.pid\"
sudo: no sudo: no
- name: just after attempt to launch celeryd - name: just after attempt to launch celeryd