23 lines
556 B
Desktop File
23 lines
556 B
Desktop File
[Unit]
|
|
Description=dilib host agent and optional Celery collector
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
[Service]
|
|
User=dilib-agent
|
|
Group=dilib-agent
|
|
WorkingDirectory=/opt/dilib-dashboard
|
|
EnvironmentFile=/etc/dilib-agent/agent.env
|
|
Environment=PYTHONUNBUFFERED=1
|
|
ExecStart=/opt/dilib-dashboard/.venv-agent/bin/python -m agent.main
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=90
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
ReadWritePaths=/var/lib/dilib-agent
|
|
[Install]
|
|
WantedBy=multi-user.target
|