-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No logging as system daemon on Raspberry #1245
Comments
I already commented on that topic in your PR, but what's happening, is the following. When running without In either case, |
Ah ok, I wasn't fully aware what the --no-daemon flag does, I read somewhere that it is just about logging output redirection. Maybe this is also an info, which could be in the docs. ;) I thought when running as a daemon, it would make sense to leave out the --no-daemon flag... But I think I remember when you leave the flag out as daemon, there is no spotifyd process at all running at startup, maybe the fork doesn't work then. But I am not sure, I will check this out in the next days.
I will also check this out. As is said in the pull request, I am not really familiar with Linux, my current project is my first real touchpoint with Linux... Thank you for your feedback. |
Ok I checked now, with --no-daemon I see journal entries with journalctl. I think I wasn't aware how to use the journal, thank you. So I think the issue was a non issue. :) Only for information:
I understood that I should use it with --no-daemon in systemd service and only without on the command line. On the command line it workd without the --no-daemon flag, there I see also the forked process with |
That's good to know. I suspect, this might be a systemd thing then and they might be killing everything, when the parent process dies? A fix for this would probably be to set |
Description
Hello,
when I configure spotifyd as a system service on a Raspberry Pi as described here: https://docs.spotifyd.rs/config/services/Systemd.html with
I can't get it to write any logs. Either I have --no-daemon argument for ExecStart, then it works fine with logging, or I leave the argument out, then the daemon starts and stops immediately without any error.
On Raspberry syslog ist not installed, instead journald and spotifyd needs a syslog for writing logs from my understanding, therefore I also installed syslog, but it did make no change. Sorry I am not so deep in Linux topics...
Some kind of Journal support would be nice for the future.
To Reproduce
Expected behavior
The process should be running
Logs
Click to show logs
Compilation flags
Versions (please complete the following information):
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
cat: command: No such file or directory
spotifyd:5565f24
cargo: 1.74.1 (ecb9851af 2023-10-18)
Thank you in advance for any help!
The text was updated successfully, but these errors were encountered: