Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: SiriusXM support?
#29
You might try this.

1. Delete the sxm-player startup line from /etc/rc.local

2. Use your favorite editor to create a file named sxm-player.service in the default user's (user pi in following example) home directory on the moOde player. The content of this file should be (note that this content is case sensitive)

Code:
[Unit]
Description=sxm-player
After=network-online.target
Requires=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/bin/sxm-player -U your-SXM-username -P your-SXM-password

[Install]
WantedBy=multi-user.target

There is no trailing '&' in the start command.

3. As superuser, copy this file to /etc/systemd/system/sxm-player.service

Code:
sudo cp sxm-player.service /etc/systemd/system/sxm-player.service

4. Check the resulting file has ownership and permissions as shown here

Code:
pi@moode:~ $ ls -l /etc/systemd/system/sxm-player.service
-rw-r--r-- 1 root root 208 Dec  2 18:42 /etc/systemd/system/sxm-player.service

5. Make systemd aware of this service and then enable it

Code:
sudo systemctl daemon-reload
sudo systemctl enable sxm-player

You should see a response like the following


Code:
pi@moode:~ $ sudo systemctl daemon-reload
pi@moode:~ $ sudo systemctl enable sxm-player
Created symlink /etc/systemd/system/multi-user.target.wants/sxm-player.service → /etc/systemd/system/sxm-player.service.

6.Now reboot the moOde player

7. Check the status of the service

Code:
systemctl status sxm-player

If all went well, you'll see something like


Code:
pi@moode:~ $ systemctl status sxm-player
● sxm-player.service - sxm-player
    Loaded: loaded (/etc/systemd/system/sxm-player.service; enabled; vendor preset: enabled)
    Active: active (running) since ...

If not, you can post the output.

Notes:
1. the actual filename is arbitrary but its extension *must* be .service
2. one can simply create and edit the file in the target directory as superuser
3. I no longer have a valid SXM subscription so I can't test that the result is satisfactory. That's up to you. Good luck.

Regards,
Kent
Reply


Messages In This Thread
SiriusXM support? - by jmperagine - 08-14-2021, 07:15 PM
RE: Siriusxm support? - by TheOldPresbyope - 08-15-2021, 01:18 PM
RE: Siriusxm support? - by jmperagine - 10-14-2021, 12:23 AM
RE: Siriusxm support? - by TheOldPresbyope - 10-14-2021, 03:43 AM
RE: Siriusxm support? - by TheOldPresbyope - 10-14-2021, 02:20 PM
RE: Siriusxm support? - by jmperagine - 10-14-2021, 06:33 PM
RE: Siriusxm support? - by TheOldPresbyope - 10-17-2021, 07:43 PM
RE: Siriusxm support? - by jmperagine - 10-18-2021, 09:01 PM
RE: Siriusxm support? - by TheOldPresbyope - 10-19-2021, 01:55 PM
RE: Siriusxm support? - by jmperagine - 10-23-2021, 12:36 AM
RE: Siriusxm support? - by TheOldPresbyope - 10-23-2021, 02:29 PM
RE: Siriusxm support? - by TheOldPresbyope - 10-24-2021, 07:51 PM
RE: Siriusxm support? - by jmperagine - 10-24-2021, 09:04 PM
RE: Siriusxm support? - by jmperagine - 10-24-2021, 09:58 PM
RE: Siriusxm support? - by TheOldPresbyope - 10-25-2021, 01:56 AM
RE: Siriusxm support? - by jmperagine - 10-27-2021, 02:01 AM
RE: Siriusxm support? - by TheOldPresbyope - 10-27-2021, 03:03 AM
RE: Siriusxm support? - by jmperagine - 10-30-2021, 05:39 PM
RE: Siriusxm support? - by jmperagine - 12-01-2023, 08:47 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-02-2023, 02:46 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-02-2023, 02:57 PM
RE: Siriusxm support? - by jmperagine - 12-02-2023, 05:08 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-02-2023, 07:02 PM
RE: Siriusxm support? - by jmperagine - 12-02-2023, 08:04 PM
RE: Siriusxm support? - by jmperagine - 12-02-2023, 08:07 PM
RE: Siriusxm support? - by jmperagine - 12-02-2023, 08:10 PM
RE: Siriusxm support? - by Nutul - 12-02-2023, 09:25 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-02-2023, 09:52 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-03-2023, 12:45 AM
RE: Siriusxm support? - by jmperagine - 12-03-2023, 08:38 PM
RE: Siriusxm support? - by TheOldPresbyope - 12-03-2023, 11:52 PM
RE: Siriusxm support? - by jmperagine - 12-05-2023, 03:31 PM

Forum Jump: