mirror of
https://github.com/infinition/Bjorn.git
synced 2025-12-12 15:44:58 +00:00
Update manual installation documentation for bjorn.service
This update introduces the below PR into the manual install: https://github.com/infinition/Bjorn/pull/27
This commit is contained in:
@@ -541,6 +541,9 @@ StandardError=inherit
|
|||||||
Restart=always
|
Restart=always
|
||||||
User=root
|
User=root
|
||||||
|
|
||||||
|
# Check open files and restart if it reached the limit (ulimit -n buffer of 1000)
|
||||||
|
ExecStartPost=/bin/bash -c 'FILE_LIMIT=$(ulimit -n); THRESHOLD=$(( FILE_LIMIT - 1000 )); while :; do TOTAL_OPEN_FILES=$(lsof | wc -l); if [ "$TOTAL_OPEN_FILES" -ge "$THRESHOLD>
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user