mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-12-13 02:20:41 +01:00
029665145e
v3.0.0: Python, Django, Celery and other version upgrades
23 lines
642 B
Desktop File
23 lines
642 B
Desktop File
[Unit]
|
|
Description=MediaCMS celery beat
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
Restart=always
|
|
RestartSec=10
|
|
WorkingDirectory=/home/mediacms.io/mediacms
|
|
Environment=CELERY_BIN="/home/mediacms.io/bin/celery"
|
|
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"
|
|
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} -A cms beat --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL}'
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|