Add 'etc/systemd/system/onlyone.service'

This commit is contained in:
2022-01-21 12:14:31 +00:00
parent 0c04ba5b55
commit 4d6d9b6c41

View File

@@ -0,0 +1,21 @@
# 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