claw-subagent-service 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -105,7 +105,7 @@ function installService() {
105
105
  }
106
106
  } else if (platform === 'linux') {
107
107
  // Linux: systemd
108
- const execStart = `/usr/bin/node ${DAEMON_PATH}`;
108
+ const execStart = `${process.execPath} ${DAEMON_PATH}`;
109
109
  const serviceFile = `/etc/systemd/system/${SERVICE_NAME}.service`;
110
110
  const serviceContent = `[Unit]
111
111
  Description=OpenClaw Guard CLI Client
@@ -145,7 +145,7 @@ WantedBy=multi-user.target
145
145
  <string>${SERVICE_NAME}</string>
146
146
  <key>ProgramArguments</key>
147
147
  <array>
148
- <string>/usr/local/bin/node</string>
148
+ <string>${process.execPath}</string>
149
149
  <string>${DAEMON_PATH}</string>
150
150
  </array>
151
151
  <key>RunAtLoad</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claw-subagent-service",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "虾说静态服务",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -109,7 +109,7 @@ After=network.target
109
109
 
110
110
  [Service]
111
111
  Type=simple
112
- ExecStart=/usr/bin/node ${DAEMON_PATH}
112
+ ExecStart=${process.execPath} ${DAEMON_PATH}
113
113
  Restart=always
114
114
  RestartSec=10
115
115
  WorkingDirectory=${path.dirname(DAEMON_PATH)}
@@ -148,7 +148,7 @@ WantedBy=multi-user.target
148
148
  <string>${SERVICE_NAME}</string>
149
149
  <key>ProgramArguments</key>
150
150
  <array>
151
- <string>/usr/local/bin/node</string>
151
+ <string>${process.execPath}</string>
152
152
  <string>${DAEMON_PATH}</string>
153
153
  </array>
154
154
  <key>RunAtLoad</key>