@patiom/daemon 0.0.7 → 0.0.9
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/dist/index.js +3 -1
- 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.
|
|
19
|
+
var version = "0.0.9";
|
|
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
440
|
ExecStart=/usr/local/bin/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
|
|