mpcが自動的に起動し、url 3 systemdを再生します。

mpcが自動的に起動し、url 3 systemdを再生します。

コンテンツ/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://を介してのみコンテンツをストリーミングしています。

フレンドリーな安否

おすすめ記事