فهرست منبع

fix: update LLM service file for user-mode systemd

- Remove User/Group settings (not valid for user services)
- Remove security hardening that blocks home directory access
- Update paths to /data/smartbotic-crm
- Fix database port to 50051
- Change WantedBy to default.target for user services
fszontagh 6 ماه پیش
والد
کامیت
43113c60e2
1فایلهای تغییر یافته به همراه4 افزوده شده و 12 حذف شده
  1. 4 12
      systemd/smartbotic-llm.service

+ 4 - 12
systemd/smartbotic-llm.service

@@ -6,10 +6,8 @@ Requires=smartbotic-database.service
 
 [Service]
 Type=simple
-User=%i
-Group=%i
-WorkingDirectory=/opt/smartbotic-crm
-ExecStart=/opt/smartbotic-crm/build/llm/smartbotic-crm-llm
+WorkingDirectory=/data/smartbotic-crm
+ExecStart=/data/smartbotic-crm/build/llm/smartbotic-crm-llm
 Restart=on-failure
 RestartSec=5
 StandardOutput=journal
@@ -17,17 +15,11 @@ StandardError=journal
 # Shutdown timeout - send SIGKILL after 10 seconds if graceful shutdown fails
 TimeoutStopSec=10
 
-# Security hardening
-NoNewPrivileges=true
-ProtectSystem=strict
-ProtectHome=true
-PrivateTmp=true
-
 # Environment
 Environment="SMARTBOTIC_LLM_ADDRESS=0.0.0.0"
 Environment="SMARTBOTIC_LLM_PORT=50052"
-Environment="SMARTBOTIC_LLM_DATABASE_ADDRESS=localhost:50151"
+Environment="SMARTBOTIC_LLM_DATABASE_ADDRESS=localhost:50051"
 Environment="SMARTBOTIC_LLM_LOG_LEVEL=info"
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=default.target