콘텐츠/etc/systemd/system/mpc.autostart.service
[Unit] Description=Music Player Client-Auto Start-Agent
[Service] Type=forking ExecStart=/usr/bin/mpd start && /usr/bin/mpc start && /usr/bin/mpc play 3 ExecReload=/usr/bin/mpd start && /usr/bin/mpc start && /usr/bin/mpc play 3 ExecStop=/usr/bin/mpd stop && /usr/bin/mpc stop RemainAfterExit=yes
[Install] WantedBy=multi-user.target
콘텐츠/usr/bin/mpc.autostart
start() {
exec usr/bin/mpc start
exec usr/bin/mpc play 3
}
stop() {
exec usr/bin/mpc stop
}
case $1 in start|stop) "$1" ;;esac
나는 또한 다음을 실행했습니다.
sudo systemctl enable mpc.autostart.service
Created symlink from /etc/systemd/system/multi-user.target.wants/mpc.autostart.service to
/etc/systemd/system/mpc.autostart.service.
그러나 그것은 작동하지 않습니다.
systemctl
lightdm.service loaded active running Light Display Mana
mpc.autostart.service loaded failed failed Music Player Clien
mpd-autoplay.service loaded active exited LSB: Ensures that
mpd.service loaded active running Music Player Daemo
답변1
이제 mpc 클라이언트가 잘 작동하지 않아서 종료했습니다.
지금은 VLC 2.2.1 Terry Pratchett를 사용하고 있으며 http://를 통해서만 콘텐츠를 스트리밍하고 있습니다.
친절한 안부