Hi there!
I'm trying to launch spotify-connect at boot. I'm posting here because it's not a problem with the addon. I want to launch this :
/storage/.kodi/addons/service.spotify-connect-web/spotify-connect-web --username MYUSER --password MYPW --bitrate 320 --name MYSERVER -o default:CARD=ALSA
From the command line, this is working perfectly. So I tried various method (I'm not a beginner with linux systems)
1. The autostart.sh method
I first tried with /storage/.configautostart.sh (I made it runnable with "chmod +x"
#!/bin/bash
(
/storage/.kodi/addons/service.spotify-connect-web/spotify-connect-web --username MYUSER --password MYPW --bitrate 320 --name MYSERVER -o default:CARD=ALSA
) &
Not working; it's not the command, because even a simple
is not working either. Seems libreelec don't care about autostart.sh.
2. The systemctl service
/storage/.config/system.d/spotify-connect.service
[Unit]
Description=Spotify Connect
After=network.target
[Service]
ExecStart=/storage/.kodi/addons/service.spotify-connect-web/spotify-connect-web --username MYUSER --password MYPW --bitrate 320 --name MYSERVER -o default:CARD=ALSA
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
Display More
Not working at boot. I tried to use an alternate script in the "ExecStart" line :
And the spotify-script.sh (runnable) :
#!/bin/bash
cd /storage/.kodi/addons/service.spotify-connect-web
/storage/.kodi/addons/service.spotify-connect-web/spotify-connect-web --username MYUSER --password MYPW --bitrate 320 --name MYSERVER -o default:CARD=ALSA
This is working when running "systemctl start spotify-connect", so I tried to enable it at boot with
but at boot... nothing happens.
3. Crontab
then
@reboot /storage/.kodi/addons/service.spotify-connect-web/spotify-connect-web --username MYUSER --password MYPW --bitrate 320 --name MYSERVER -o default:CARD=ALSA
nothing happens.
Aaaand... I have no more ideas. Can someone point me to one of my errors, or have another idea?
TL;DR : I want to start a command at boot but nothin works.
Thank you!
Libreelec 7.0.2.