26 lines
570 B
Desktop File
26 lines
570 B
Desktop File
[Unit]
|
|
Description=BigTime Agent Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=bigtime
|
|
Group=bigtime
|
|
WorkingDirectory=/opt/bigtime/app
|
|
EnvironmentFile=/etc/bigtime/bigtime.env
|
|
ExecStart=/opt/bigtime/app/.venv/bin/python -m uvicorn backend.apps.agent_service:app --host 127.0.0.1 --port 8000 --workers 1 --log-level warning --no-access-log
|
|
Restart=always
|
|
RestartSec=3
|
|
TimeoutStopSec=20
|
|
KillMode=mixed
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
LimitNOFILE=65535
|
|
TasksMax=4096
|
|
MemoryMax=1024M
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|