Files
pi.bluetooth.speaker/etc/systemd/system/onlyone.service

21 lines
406 B
Desktop File

# file located at /lib/systemd/system/
[Unit]
Description=onlyone
Requires=network.target sound.target
After=network.target sound.target
[Service]
Type=simple
# change for user you want!
User=root
# note use your mac address as given by ifconfig and the name you wish to give your player
Environment=PYTHONPATH=/srv
ExecStart=/usr/bin/python3 -m onlyone --server
[Install]
WantedBy=multi-user.target