smartbotic-llm.service 841 B

123456789101112131415161718192021222324252627282930313233
  1. [Unit]
  2. Description=SmartBotic CRM LLM Service
  3. Documentation=https://github.com/smartbotic/smartbotic-crm
  4. After=network.target smartbotic-database.service
  5. Requires=smartbotic-database.service
  6. [Service]
  7. Type=simple
  8. User=%i
  9. Group=%i
  10. WorkingDirectory=/opt/smartbotic-crm
  11. ExecStart=/opt/smartbotic-crm/build/llm/smartbotic-crm-llm
  12. Restart=on-failure
  13. RestartSec=5
  14. StandardOutput=journal
  15. StandardError=journal
  16. # Shutdown timeout - send SIGKILL after 10 seconds if graceful shutdown fails
  17. TimeoutStopSec=10
  18. # Security hardening
  19. NoNewPrivileges=true
  20. ProtectSystem=strict
  21. ProtectHome=true
  22. PrivateTmp=true
  23. # Environment
  24. Environment="SMARTBOTIC_LLM_ADDRESS=0.0.0.0"
  25. Environment="SMARTBOTIC_LLM_PORT=50052"
  26. Environment="SMARTBOTIC_LLM_DATABASE_ADDRESS=localhost:50151"
  27. Environment="SMARTBOTIC_LLM_LOG_LEVEL=info"
  28. [Install]
  29. WantedBy=multi-user.target