@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Flower with persistent local state
|
||||
After=network-online.target
|
||||
[Service]
|
||||
User=dilib-agent
|
||||
Group=dilib-agent
|
||||
WorkingDirectory=/opt/dilib-dashboard
|
||||
EnvironmentFile=/etc/dilib-agent/flower.env
|
||||
ExecStart=/opt/dilib-dashboard/.venv-agent/bin/celery --broker=${FLOWER_BROKER_URL} flower --conf=/opt/dilib-dashboard/deploy/flowerconfig.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
TimeoutStopSec=60
|
||||
UMask=0077
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=/var/lib/dilib-flower
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user