mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-25 06:33:24 +02:00
22 lines
640 B
Django/Jinja
22 lines
640 B
Django/Jinja
[Unit]
|
|
Description=Mayan EDMS celery beat service
|
|
After=redis.service {{ (pg_version is defined and pg_version != 'default') | ternary('postgresql-' + pg_version | string,'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 beat -A mayan --pidfile= -l ERROR
|
|
PrivateTmp=yes
|
|
ProtectSystem=full
|
|
ProtectHome=yes
|
|
NoNewPrivileges=yes
|
|
MemoryLimit=1024M
|
|
SyslogIdentifier=mayan-edms-beat
|
|
Restart=on-failure
|
|
StartLimitInterval=0
|
|
RestartSec=30
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|