fix: turn off LEDs on service start, suppress Err0 before first WS success

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-19 23:27:42 +08:00
parent 9b4287db1d
commit 8f158eeeb2
2 changed files with 8 additions and 4 deletions

View File

@@ -187,6 +187,7 @@ Wants=network-online.target
[Service]
Type=simple
EnvironmentFile=$ENV_FILE
ExecStartPre=/bin/sh -c 'echo 1 > /sys/devices/platform/openvfd/attr/b1 2>/dev/null; echo 1 > /sys/devices/platform/openvfd/attr/b2 2>/dev/null; true'
ExecStart=$NODE_BIN $INSTALL_DIR/bin/clawd.js
WorkingDirectory=$INSTALL_DIR