@patiom/daemon 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { parse, stringify } from "smol-toml";
16
16
  import dotenv from "dotenv";
17
17
  import { spawn } from "node:child_process";
18
18
  //#region package.json
19
- var version = "0.0.7";
19
+ var version = "0.0.8";
20
20
  //#endregion
21
21
  //#region src/config.ts
22
22
  const PATIOM_ROOT = "/var/lib/patiom";
@@ -433,11 +433,13 @@ WantedBy=multi-user.target
433
433
  const daemonServiceTemplate = ({ nodeBinPath, port }) => `[Unit]
434
434
  Description=Patiom Daemon
435
435
  After=network.target
436
+ StartLimitIntervalSec=0
436
437
 
437
438
  [Service]
438
439
  Type=exec
439
- ExecStart=/usr/local/bin/patiom-server serve
440
+ ExecStart=${nodeBinPath}/patiom-server serve
440
441
  Restart=always
442
+ RestartSec=5
441
443
  Environment=PORT=${port}
442
444
  Environment=PATH=${nodeBinPath}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
443
445
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patiom/daemon",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "patiom-server": "dist/index.js"