-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
DietPi-Software | MPD: Can't find conf file after upgrade from 6.10 --> 6.19 #2378
Comments
@mfeif
Jep indeed this is somehow confusing. However the comment in
This is only a failsafe thing and should not break anything, since only group is changed. Actually all this should be not required. PID files and runtime dirs are created automatically by systemd and since the service runs as root, there should be no access issues at all. Even if sub processes spawn as different users, those should not require access to the runtime dir. Perhaps I find some time to clean the above up, however as I am not sure about the reasons and done testing, there might be reasons for it, so intense testing is required which take much time. And since it should not cause any issues...
|
Actually no issue here with removing It is possible to use the default Stretch systemd unit with additional hardenings, only binary needs to be adjusted to /usr/local/bin:
Ah and RuntimeDirectory NEEDS to be pre-created and chowned to run user defined in Only thing:
Testing above config file on Jessie:
|
I opened a PR to address the above: https://github.com/Fourdee/DietPi/pull/2381 I have not yet a clue, why on default Debian package install, the " |
|
@Fourdee
|
@mfeif @Fourdee
To resolve:
Fixed with: Fourdee@10efc06 |
Nice work guys! Thanks! |
Creating a bug report/issue:
MPD can no longer start, because it can't find its conf file:
/etc/mpd.conf is in place
/lib/systemd/system/mpd.service has some conflicting info. Note that it's forcing the binary to see /etc/mpd.conf but ALSO is telling it to look in /etc/default/mpd (which has its own configuration about where to put the conf file). Also, I think that those directories in /var/run/mpd maybe shouldn't be messed with every time... since the service here claims that mpd will change its user in a fork, but the chown might wreck that.
Here's /etc/default/mpd:
But anyway, if you ignore the systemctl version and just try and run it, it still doesn't work:
Required Information:
9.6
Linux PiFi 3.10.38 #22 SMP PREEMPT Fri Dec 22 10:45:41 IST 2017 armv7l GNU/Linux
Sparky SBC (armv7l)
Additional Information (if applicable):
Steps to reproduce:
See above.
Extra details:
So there are some weird things going on. First, if one forces mpd to use /etc/mpd.conf it DOES find it. If you just run it, it doesn't, though the file is there, and so on.
The text was updated successfully, but these errors were encountered: