Skip to content

Commit 710f6f9

Browse files
committed
covfefe
1 parent 51eaea2 commit 710f6f9

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

lib/configexample.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"notifyPort": "443 or 80",
55
"notifyPath": "/api/monitor"
66
},
7-
"debug": {
8-
"enabled": true
9-
},
107
"security": {
118
"type": "custom",
129
"service": {
@@ -17,5 +14,23 @@
1714
"token": "mymetricsjs"
1815
}
1916
}
17+
},
18+
"services": {
19+
"enabled": "screen",
20+
"available": {
21+
"screen": {
22+
"run": "screen -S mymetricsjs -dm node ./mymetrics.js",
23+
"stop": "screen -S mymetricsjs -p 0 -X quit",
24+
"install": "sudo apt-get install screen"
25+
},
26+
"pm2": {
27+
"run": "pm2 start mymetrics.js",
28+
"stop": "pm2 stop mymetrics.js",
29+
"install": "npm install pm2@latest -g"
30+
}
31+
}
32+
},
33+
"debug": {
34+
"enabled": true
2035
}
2136
}

setup

-21
This file was deleted.

0 commit comments

Comments
 (0)