24 lines
535 B
Desktop File
24 lines
535 B
Desktop File
[Unit]
|
|
Description=Coulobre Panel Celery worker
|
|
Wants=network-online.target
|
|
After=network-online.target mariadb.service rabbitmq-server.service
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=coulobre-panel
|
|
Group=coulobre-panel
|
|
EnvironmentFile=/etc/coulobre/panel.env
|
|
WorkingDirectory=/opt/coulobre
|
|
UMask=0077
|
|
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --concurrency=2
|
|
KillMode=mixed
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|