2020-12-15 22:33:43 +01:00
|
|
|
[Unit]
|
|
|
|
Description=MediaCMS celery beat
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=www-data
|
|
|
|
Group=www-data
|
|
|
|
Restart=always
|
|
|
|
RestartSec=10
|
2023-07-03 12:40:39 +02:00
|
|
|
WorkingDirectory=/home/mediacms.io/mediacms
|
2020-12-15 22:33:43 +01:00
|
|
|
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"
|
|
|
|
|
2023-07-03 12:40:39 +02:00
|
|
|
ExecStart=/bin/sh -c '${CELERY_BIN} -A cms beat --pidfile=${CELERYD_PID_FILE} --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL}'
|
2020-12-15 22:33:43 +01:00
|
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|