mirror of
https://github.com/furyhawk/home_stack.git
synced 2026-07-21 10:16:47 +00:00
fix: update environment variables and logging configuration in service files
This commit is contained in:
@@ -22,6 +22,9 @@ Native way to run as a persistent background service on Debian/Ubuntu.
|
|||||||
2. Reload systemd: `sudo systemctl daemon-reload`
|
2. Reload systemd: `sudo systemctl daemon-reload`
|
||||||
3. Enable and Start: `sudo systemctl enable --now llama-server`
|
3. Enable and Start: `sudo systemctl enable --now llama-server`
|
||||||
- **Check health**: `sudo systemctl status llama-server`
|
- **Check health**: `sudo systemctl status llama-server`
|
||||||
|
- **View logs**:
|
||||||
|
- Real-time: `journalctl -u llama-server -f`
|
||||||
|
- Since boot: `journalctl -u llama-server -b`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment="MODEL_PATH=/home/user/unsloth/Qwen3.5-0.8B-GGUF/Qwen3.5-0.8B-UD-Q4_K_XL.gguf"
|
Environment="MODEL_PATH=%h/unsloth/Qwen3.5-0.8B-GGUF/Qwen3.5-0.8B-UD-Q4_K_XL.gguf"
|
||||||
Environment="MMPROJ_PATH=/home/user/unsloth/Qwen3.5-0.8B-GGUF/mmproj-BF16.gguf"
|
Environment="MMPROJ_PATH=%h/unsloth/Qwen3.5-0.8B-GGUF/mmproj-BF16.gguf"
|
||||||
ExecStart=/usr/local/bin/llama-server \
|
ExecStart=/usr/local/bin/llama-server \
|
||||||
--model ${MODEL_PATH} \
|
--model ${MODEL_PATH} \
|
||||||
--mmproj ${MMPROJ_PATH} \
|
--mmproj ${MMPROJ_PATH} \
|
||||||
@@ -21,10 +21,10 @@ ExecStart=/usr/local/bin/llama-server \
|
|||||||
--chat-template-kwargs '{"enable_thinking":false}'
|
--chat-template-kwargs '{"enable_thinking":false}'
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
User=user
|
User=%u
|
||||||
WorkingDirectory=/home/user/projects/home_stack/ai_stack/llamacpp.server
|
WorkingDirectory=%h/projects/home_stack/ai_stack/llamacpp.server
|
||||||
StandardOutput=append:/home/user/projects/home_stack/ai_stack/llamacpp.server/server.log
|
StandardOutput=journal
|
||||||
StandardError=append:/home/user/projects/home_stack/ai_stack/llamacpp.server/server.log
|
StandardError=journal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user