Hello world,
sorry for starting a new topic, but this seems rather unrelated to my other (solved) problem.
ight now I am stuck getting MPC to auto load a playlist and play it upon start up.
I have tried loading a shell script in a service
$this->bbcode_second_pass_code('', '
mpc load Radio.m3u && mpc play')
as well as running the command from within the service file:
$this->bbcode_second_pass_code('', '[Unit]
Description=Load Playlist and play it
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/mpc load Radio.m3u
User=root
[Install]
WantedBy=multi-user.target
')
Can someone please help me with the .service file?