querysub 0.201.0 → 0.202.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.201.0",
3
+ "version": "0.202.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -1,3 +1,6 @@
1
1
  #! /bin/bash
2
2
  tmux new -s machine-alwaysup -d
3
+ # Kill anything that is running on it first
4
+ tmux send-keys -t machine-alwaysup "C-c" Enter
5
+ sleep 3
3
6
  tmux send-keys -t machine-alwaysup "cd ~/machine-alwaysup && yarn machine-alwaysup" Enter
@@ -329,19 +329,20 @@ export async function machineApplyMain() {
329
329
  console.error(`Always up error: ${lastError}`);
330
330
  }
331
331
 
332
- let isRunningPath = os.homedir() + "/isMachineApplyRunning.txt";
333
- if (fs.existsSync(isRunningPath)) {
334
- let parts = await fs.promises.readFile(isRunningPath, "utf8");
335
- let [ppid, pid] = parts.split("-");
336
- let pidRunning = await isPIDRunning(pid);
337
- let ppidRunning = pidRunning && await isPIDRunning(ppid);
338
- let actualPPID = ppidRunning && await getPPID(pid);
339
- if (pidRunning && ppidRunning && actualPPID === ppid) {
340
- console.error(`Machine apply is already running in pid ${pid}, exiting duplicate`);
341
- process.exit(1);
342
- }
343
- }
344
- await fs.promises.writeFile(isRunningPath, `${process.ppid}-${process.pid}`);
332
+ // Removed, because it wasn't working...
333
+ // let isRunningPath = os.homedir() + "/isMachineApplyRunning.txt";
334
+ // if (fs.existsSync(isRunningPath)) {
335
+ // let parts = await fs.promises.readFile(isRunningPath, "utf8");
336
+ // let [ppid, pid] = parts.split("-");
337
+ // let pidRunning = await isPIDRunning(pid);
338
+ // let ppidRunning = pidRunning && await isPIDRunning(ppid);
339
+ // let actualPPID = ppidRunning && await getPPID(pid);
340
+ // if (pidRunning && ppidRunning && actualPPID === ppid) {
341
+ // console.error(`Machine apply is already running in pid ${pid}, exiting duplicate`);
342
+ // process.exit(1);
343
+ // }
344
+ // }
345
+ // await fs.promises.writeFile(isRunningPath, `${process.ppid}-${process.pid}`);
345
346
 
346
347
  await Querysub.hostService("machine-apply");
347
348
  onServiceConfigChange(resyncServices);