• Max Kellermann's avatar
    Main: ignore the "pid_file" setting if started as systemd service · a4e42172
    Max Kellermann authored
    Commit 552c30ea caused problems for those people who still had a
    "pid_file" setting (even though that is obsolete with systemd),
    because now /run/mpd is owned by root:root (our mpd.service has no
    User=mpd directive, so systemd starts MPD as root).
    
    To work around this problem, and to be able to keep
    RuntimeDirectory=mpd (which solved a problem of other MPD users), the
    best compromise seems to just ignore the "pid_file" setting when it is
    of no use.
    a4e42172
Main.cxx 15.8 KB