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.
|
|
|
[Unit]
|
|
|
|
Description=Papermerge Worker
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
WorkingDirectory={{ papermerge_root_dir }}/app
|
|
|
|
Environment=DJANGO_SETTINGS_MODULE=config.settings.production
|
|
|
|
Environment=OMP_THREAD_LIMIT={{ ansible_processor_vcpus }}
|
|
|
|
ExecStart={{ papermerge_root_dir }}/venv/bin/python manage.py worker
|
|
|
|
User={{ papermerge_user }}
|
|
|
|
Group={{ papermerge_user }}
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
MemoryLimit=1024M
|
|
|
|
Restart=on-failure
|
|
|
|
StartLimitInterval=0
|
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|