LINUX.ORG.RU

mpd error

 , , ,


1

2

Не выходит завести mpd 0.20; pulseaudio 9.0, ncmpcpp 0.7.7
mpd.conf

user "denis"

# Required files
db_file            "~/.config/mpd/database"
log_file           "~/.config/mpd/log"

# Optional
music_directory    "~/Музыка"
playlist_directory "~/.config/mpd/playlists"
pid_file           "~/.config/mpd/pid"
state_file         "~/.config/mpd/state"
sticker_file       "~/.config/mpd/sticker.sql"
mixer_type "software"
audio_output {
        type            "pulse"
        name            "pulse audio"
}
bind_to_address 	"127.0.0.1"
mpd log
Jan 10 01:13 : exception: OutputThread could not get realtime scheduling, continuing anyway: sched_setscheduler failed: Operation not permitted
mpd.service
[Unit]
Description=Music Player Daemon
Documentation=man:mpd(1) man:mpd.conf(5)
After=network.target sound.target

[Service]
Type=notify
ExecStart=/usr/bin/mpd --no-daemon

# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=infinity

# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes

# more paranoid security settings
NoNewPrivileges=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
RestrictNamespaces=yes

# Note that "ProtectKernelModules=yes" is missing in the user unit
# because systemd 232 is unable to reduce its own capabilities
# ("Failed at step CAPABILITIES spawning /usr/bin/mpd: Operation not
# permitted")

[Install]
WantedBy=default.target
mpd.service log
$ systemctl --user status mpd.service
● mpd.service - Music Player Daemon
   Loaded: loaded (/usr/lib/systemd/user/mpd.service; enabled; ve
   Active: active (running) since Tue 2017-01-10 01:13:57 EET; 3m
     Docs: man:mpd(1)
           man:mpd.conf(5)
 Main PID: 24869 (mpd)
   CGroup: /user.slice/user-1000.slice/user@1000.service/mpd.serv
           └─24869 /usr/bin/mpd --no-daemon

янв 10 01:13:56 hp systemd[2611]: Stopped Music Player Daemon.
янв 10 01:13:56 hp systemd[2611]: Starting Music Player Daemon...
янв 10 01:13:57 hp systemd[2611]: Started Music Player Daemon.
Где я допустил ошибку в настройке и как исправить? Заранее всем спасибо.

попробуй так:


music_directory "~/Музыка/"
pid_file "~/.config/mpd/pid"
db_file "~/.config/mpd//db"
state_file "~/.config/mpd/state"
playlist_directory "~/.config/mpd/playlists/"
sticker_file "~/.config/mpd/sticker.sql"
log_file "~/.config/mpd/log"

bind_to_address "127.0.0.1"
port "6600"

audio_output {
type "pulse"
name "pulse audio"
}

auto_update "yes"

filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"

zoloz ()