lkrg-org/lkrg

Logger: Re-enable daemonization, add privilege dropping

solardiz opened this issue · 1 comments

Nov 24, 2022

Right now, the daemonization code is if-ed out and the service is assumed to be started by a user and listen on an unprivileged port and uses relative paths to logs. This is convenient for testing, but before release we need to make this into a proper daemon that starts as root, listens on a possibly privileged port, daemonizes itself, and drops privileges. It will also need to use an absolute path to the logs directory, expecting to be installed on a system globally.

This is now implemented in its basic form. Future work may include making this configurable and dropping more privileges (not just switching to a non-root user).