@profullstack/threatcrush 0.13.46 → 0.13.47
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.
|
@@ -3,13 +3,21 @@ Description=ThreatCrush Security Agent Daemon
|
|
|
3
3
|
Documentation=https://threatcrush.com
|
|
4
4
|
After=network-online.target
|
|
5
5
|
Wants=network-online.target
|
|
6
|
+
# A daemon that cannot start (say, an ExecStart path a pnpm upgrade removed)
|
|
7
|
+
# gives up after 10 tries in 5 minutes instead of looping forever.
|
|
8
|
+
StartLimitIntervalSec=300
|
|
9
|
+
StartLimitBurst=10
|
|
6
10
|
|
|
7
11
|
[Service]
|
|
8
12
|
Type=simple
|
|
9
13
|
# The path to the CLI binary is filled in by `threatcrush install-service`.
|
|
10
14
|
ExecStart={{BIN_PATH}} daemon
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
# always, not on-failure: earlyoom and other memory-pressure killers stop the
|
|
16
|
+
# daemon with SIGTERM, it shuts down cleanly and exits 0, and on-failure reads
|
|
17
|
+
# that as a deliberate stop. Seen on bbs.profullstack.com: down 8 days after
|
|
18
|
+
# one low-memory night. `systemctl stop` still stops it for good.
|
|
19
|
+
Restart=always
|
|
20
|
+
RestartSec=10
|
|
13
21
|
KillSignal=SIGTERM
|
|
14
22
|
TimeoutStopSec=10
|
|
15
23
|
|
package/package.json
CHANGED