mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 00:03:28 +01:00
25 lines
772 B
Desktop File
25 lines
772 B
Desktop File
[Unit]
|
|
Description=MediaCMS celery beat
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
Restart=always
|
|
RestartSec=10
|
|
Environment=APP_DIR="/home/mediacms.io/mediacms"
|
|
Environment=CELERY_BIN="/home/mediacms.io/bin/celery"
|
|
Environment=CELERY_APP="cms"
|
|
Environment=CELERYD_PID_FILE="/home/mediacms.io/mediacms/pids/beat%n.pid"
|
|
Environment=CELERYD_LOG_FILE="/home/mediacms.io/mediacms/logs/beat%N.log"
|
|
Environment=CELERYD_LOG_LEVEL="INFO"
|
|
Environment=APP_DIR="/home/mediacms.io/mediacms"
|
|
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} beat -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS} --workdir=${APP_DIR}'
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|