FS#27731 - [mpd] move pid file to /run/mpd.pid. allow mpd to run as other users
Attached to Project:
Arch Linux
Opened by Jonathan Frazier (wide-eye) - Tuesday, 27 December 2011, 06:28 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 21 March 2012, 11:59 GMT
Opened by Jonathan Frazier (wide-eye) - Tuesday, 27 December 2011, 06:28 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 21 March 2012, 11:59 GMT
|
Details
1. With the recent symlinking of /var/run to /run there is
no point in keeping the pid directory inside /var/run/
2. mpd.pid is the only user of /var/run/mpd, it doesn't need its own directory. 3. The mpd.install and rc.d/mpd scripts reset the uid and gid for mpd dirs with every startup and update. I find this annoying as I run mpd under another user. Here are some build files to change the above. this including a warning about the pidfile movement as the old directory no longer exists. my version is on github below, attached are the changes compared to mpd from abs. https://github.com/JohnFrazier/arch-tmpfiles.d/tree/973adedd9aee6487c7b767aad1f296091576d82c/extra/mpd |
This task depends upon
Closed by Gaetan Bisson (vesath)
Wednesday, 21 March 2012, 11:59 GMT
Reason for closing: Implemented
Additional comments about closing: mpd-0.16.7-2 in [testing]
Wednesday, 21 March 2012, 11:59 GMT
Reason for closing: Implemented
Additional comments about closing: mpd-0.16.7-2 in [testing]
http://git.musicpd.org/cgit/master/mpd.git/tree/mpd.service.in
Not really related to this bug, though.
Other than that, I'll soon push a new mpd to [extra] featuring your other suggestions.