Move to simpler file structure
This commit is contained in:
parent
fe72523a5a
commit
d71a28e1c8
33 changed files with 374 additions and 406 deletions
19
templates/celerybeat.j2
Normal file
19
templates/celerybeat.j2
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
[Unit]
|
||||
Description=Celery Beat Service
|
||||
After=celery.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=newsreader
|
||||
Group=newsreader
|
||||
EnvironmentFile=/home/newsreader/.config/conf.d/celery
|
||||
RuntimeDirectory=celery
|
||||
WorkingDirectory={{ app_dir }}/src
|
||||
ExecStart=/bin/sh -c '${CELERY_BIN} beat \
|
||||
-A ${CELERY_APP} -S ${CELERY_SCHEDULER} --pidfile=${CELERYBEAT_PID_FILE} \
|
||||
--loglevel=${CELERYD_LOG_LEVEL} --logfile=${CELERYD_LOG_FILE}'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in a new issue