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
796 B
23 lines
796 B
4 years ago
|
[Unit]
|
||
|
Description=Mayan EDMS fast celery worker
|
||
4 years ago
|
After=redis.service {{ (pg_version is defined and pg_version != 'default') | ternary('postgresql-' + pg_version | string,'postgresql') }}.service mysql.service mariadb.service rabbitmq-server.service
|
||
4 years ago
|
|
||
|
[Service]
|
||
|
User={{ mayan_user }}
|
||
|
WorkingDirectory={{ mayan_root_dir }}/
|
||
|
EnvironmentFile={{ mayan_root_dir }}/config/.env
|
||
4 years ago
|
ExecStart={{ mayan_root_dir }}/venv/bin/celery worker -A mayan -Ofair -l ERROR -Q document_states_fast,converter,sources_fast -n mayan-worker-fast.%%h --concurrency={{ ansible_processor_vcpus + 1 }}
|
||
4 years ago
|
Nice=1
|
||
|
PrivateTmp=yes
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=yes
|
||
|
NoNewPrivileges=yes
|
||
4 years ago
|
MemoryLimit=2048M
|
||
4 years ago
|
SyslogIdentifier=mayan-edms-worker-fast
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=30
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|