diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index ee45ff6e..4df881b5 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -59,7 +59,6 @@ class Access extends EventEmitter { gid = PGID, restartInterval = 10000, stdio = 'pipe', - timeout = 10000, uid = PUID, ...restSpawnOptions }: AccessStartOptions = {}) { @@ -68,7 +67,6 @@ class Access extends EventEmitter { gid, restartInterval, stdio, - timeout, uid, ...restSpawnOptions, }; @@ -78,7 +76,6 @@ class Access extends EventEmitter { const ps = spawn(SERVER_PATHS.usr.sbin['anvil-access-module'].self, args, { gid, stdio, - timeout, uid, ...restSpawnOptions, }); diff --git a/striker-ui-api/src/types/AccessModule.d.ts b/striker-ui-api/src/types/AccessModule.d.ts index 74dfd258..b56c5516 100644 --- a/striker-ui-api/src/types/AccessModule.d.ts +++ b/striker-ui-api/src/types/AccessModule.d.ts @@ -1,3 +1,9 @@ +/** + * Notes: + * - Option `timeout` for child_process.spawn was added in node15.13.0 to limit + * the lifespan of the child process; this is **not** the max wait time before + * the child process starts successfully. + */ type AccessStartOptions = { args?: readonly string[]; restartInterval?: number;