You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
727 B
23 lines
727 B
4 years ago
|
[Unit]
|
||
|
Description=Mayan EDMS medium celery worker
|
||
|
After=redis.service postgresql.service mysql.service mariadb.service
|
||
|
|
||
|
[Service]
|
||
|
User={{ mayan_user }}
|
||
|
WorkingDirectory={{ mayan_root_dir }}/
|
||
|
EnvironmentFile={{ mayan_root_dir }}/config/.env
|
||
|
ExecStart={{ mayan_root_dir }}/venv/bin/celery worker -A mayan -Ofair -l INFO -Q default,checkouts_periodic,indexing,signatures,documents_periodic,uploads,documents,file_metadata,metadata,sources,sources_periodic -n mayan-worker-medium.%%h --concurrency=1
|
||
|
Nice=18
|
||
|
PrivateTmp=yes
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=yes
|
||
|
NoNewPrivileges=yes
|
||
|
MemoryLimit=1024M
|
||
|
SyslogIdentifier=mayan-edms-worker-medium
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=30
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|