mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #258] daemon log to STDOUT and no double fork #1068
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1068
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chrisaq on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/258
Is your feature request related to a problem? Please describe.
The common way to run linux daemons lately have been to not (double) fork the process, but let it run in the foreground.
This lets you see the logs using
docker logs,journalctl -u <service>,kubectl logsand so on.Describe the solution you'd like
Give
spotify_player daemonand extra option to not daemonize, and print logs to STDOUT.Describe alternatives you've considered
There are really no alternatives if you want to achieve this and use standard tools for reading logs the normal way.
For systemd there are workarounds for forking daemons, but it is not recommended.
Additional context
I've not been able to find how to do this with spotify-player as is, please excuse me if that is the case after all.