Skip to content

prosody: fix default logging settings#59553

Open
balejk wants to merge 1 commit intovoid-linux:masterfrom
balejk:prosody-fixes
Open

prosody: fix default logging settings#59553
balejk wants to merge 1 commit intovoid-linux:masterfrom
balejk:prosody-fixes

Conversation

@balejk
Copy link
Contributor

@balejk balejk commented Mar 24, 2026

Absolute paths to the log files need to be given to prosody as otherwise
it will fail to open them on startup because it will try to create them
in a directory where it has no write permissions.

Also change the location of the files to be under /var/log/prosody, the
previous location in /var/lib/prosody was just a corollary of using the
relative paths and of prosody switching to this directory soon after
startup (but not before attempting to open the log files).

Also change the permissions on prosody's home directory as per the
packaging instructions.

Link: https://prosody.im/doc/packagers#data_directory

Testing the changes

  • I tested the changes in this PR: briefly

Local build testing

  • I built this PR locally for my native architecture, (x86_64)

Absolute paths to the log files need to be given to prosody as otherwise
it will fail to open them on startup because it will try to create them
in a directory where it has no write permissions.

Also change the location of the files to be under /var/log/prosody, the
previous location in /var/lib/prosody was just a corollary of using the
relative paths and of prosody switching to this directory soon after
startup (but not before attempting to open the log files).

Also change the permissions on prosody's home directory as per the
packaging instructions.

Link: https://prosody.im/doc/packagers#data_directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant