| Summary: | media-sound/mpd-0.23.15-r1 init script no longer supports log_file="syslog" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Walther <walther.md> |
| Component: | Current packages | Assignee: | Adrian Schollmeyer <nex+b-g-o> |
| Status: | UNCONFIRMED --- | ||
| Severity: | normal | CC: | matthew, proxy-maint |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
/etc/mpd.conf: [code] # These settings are the locations for the daemon log files for the daemon. # # The special value "syslog" makes MPD use the local syslog daemon. This # setting defaults to logging to syslog. # # If you use systemd, do not configure a log_file. With systemd, MPD # defaults to the systemd journal, which is fine. # log_file "syslog" [/code] /etc/init.d/mpd: [code] start_pre() { check_config local pid_dir="$(dirname "${pidfile}")" checkpath -d -m 700 -o "${mpd_user}:${mpd_group}" "${pid_dir}" local log_file="$(get_config log_file)" if [ -n "${log_file}" ]; then local log_dir="$(dirname "${log_file}")" checkpath -d -m 755 -o "${mpd_user}:${mpd_group}" "${log_dir}" fi } [/code] /etc/init.d/mpd start * checkpath: empty or relative path * ERROR: mpd failed to start The current (stable) init.d script for mpd fails to account for the special value of the log_file "syslog", and the daemon only starts if it specifies an absolute file.