mpc autostart e reproduz o url 3 systemd

1

Conteúdo de /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

Conteúdo de /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

Eu também corri:

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.

No entanto, ele não funciona.

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
    
por Ferdinat Makenzie 16.11.2016 / 22:37

1 resposta

0

Agora terminei com o cliente mpc porque isso não funciona imenso.

Agora estou usando o VLC 2.2.1 Terry Pratchett e eu transmitimos somente contens via http: //

cumprimentos

    
por 19.11.2016 / 17:38