Add live log viewer and enable file logging in service

This commit is contained in:
Gemini Bot
2026-01-20 13:19:06 +00:00
parent 6e2a9d5b2e
commit 507c4a10ea
4 changed files with 92 additions and 15 deletions

View File

@@ -122,12 +122,8 @@ After=network.target necrohash-gui.service
[Service]
User=$USER
WorkingDirectory=$TARGET_DIR
# ExecStart=/usr/local/bin/cgminer -c $TARGET_DIR/cgminer.conf
# Using nohup or similar might be needed if it tries to grab stdin/tty,
# but usually systemd handles it.
# Explicitly disabling ncurses/text interaction via --text-only or --real-quiet if available is good.
# For now, standard call:
ExecStart=/usr/local/bin/cgminer --gridseed-options freq=850 -c $TARGET_DIR/cgminer.conf
# Log stdout/stderr to file for the GUI to read
ExecStart=/bin/sh -c 'exec /usr/local/bin/cgminer --gridseed-options freq=850 -c $TARGET_DIR/cgminer.conf >> $TARGET_DIR/cgminer.log 2>&1'
Restart=always
RestartSec=10