aws-runtime-bridge 1.9.78 → 1.9.79
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.
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* 关键行为:
|
|
8
8
|
* - install 时在 `path.dirname(script)/daemon/` 下创建 winsw.exe + XML 配置;
|
|
9
9
|
* - `logpath` 配置项控制日志输出目录(WinSW 生成 `<id>.out.log` / `<id>.err.log`);
|
|
10
|
-
* - `id` =
|
|
10
|
+
* - 必须显式传 `id: name`,否则 node-windows 1.0.0-beta.8 默认 `id = name + '.exe'`,
|
|
11
|
+
* 会导致 SCM 中实际服务名为 `awsb.exe`,与 sc.exe 用的 `awsb` 不一致。
|
|
11
12
|
*/
|
|
12
13
|
export interface WindowsServiceConfig {
|
|
13
14
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windows-service-manager.d.ts","sourceRoot":"","sources":["../../src/services/windows-service-manager.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"windows-service-manager.d.ts","sourceRoot":"","sources":["../../src/services/windows-service-manager.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAiBD,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED,wBAAgB,2BAA2B,IAAI,qBAAqB,CAuCnE"}
|
|
@@ -36,6 +36,11 @@ export function createWindowsServiceManager() {
|
|
|
36
36
|
}
|
|
37
37
|
const svc = new ServiceCtor({
|
|
38
38
|
name: config.name,
|
|
39
|
+
// 显式指定 id(WinSW XML 的 <id>,即 SCM 中的服务名)。
|
|
40
|
+
// node-windows 1.0.0-beta.8 默认把 id 设成 `name + '.exe'`,会导致
|
|
41
|
+
// 注册到 SCM 的服务名为 `awsb.exe`,而后续 sc.exe start/stop 用的是
|
|
42
|
+
// `awsb`,名字不一致报 1060。这里强制与 name 对齐。
|
|
43
|
+
id: config.name,
|
|
39
44
|
description: config.description,
|
|
40
45
|
script: config.script,
|
|
41
46
|
workingDirectory: config.workingDirectory,
|