Merge pull request 'Docs: Bump maximum datasize limit and mention cap_mkdb when creating login class' (#7995) from openbsd-bump-datasize into develop
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7995
This commit is contained in:
commit
1afc236468
2 changed files with 8 additions and 1 deletions
1
changelog.d/openbsd-datasize-bump.change
Normal file
1
changelog.d/openbsd-datasize-bump.change
Normal file
|
|
@ -0,0 +1 @@
|
|||
Docs OpenBSD: Increased recommended `datasize` from 1536M to 4096M to avoid Pleroma crashes
|
||||
|
|
@ -67,13 +67,19 @@ Pleroma will be run by a dedicated \_pleroma user. Before creating it, insert th
|
|||
|
||||
```
|
||||
pleroma:\
|
||||
:datasize=1536M:\
|
||||
:datasize=4096M:\
|
||||
:openfiles-max=4096:\
|
||||
:openfiles-cur=1024:\
|
||||
:setenv=LC_ALL=en_US.UTF-8,VIX_COMPILATION_MODE=PLATFORM_PROVIDED_LIBVIPS,MIX_ENV=prod:\
|
||||
:tc=daemon:
|
||||
```
|
||||
|
||||
Then run:
|
||||
|
||||
```
|
||||
# cap_mkdb /etc/login.conf
|
||||
```
|
||||
|
||||
This creates a "pleroma" login class and sets higher values than default for datasize and openfiles (see [login.conf(5)](https://man.openbsd.org/login.conf)), this is required to avoid having Pleroma crash some time after starting.
|
||||
|
||||
Create the \_pleroma user, assign it the pleroma login class and create its home directory (/home/\_pleroma/):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue