Add live log viewer and enable file logging in service
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user