Add 'etc/systemd/system/onlyone.service'
This commit is contained in:
21
etc/systemd/system/onlyone.service
Normal file
21
etc/systemd/system/onlyone.service
Normal 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
|
||||||
Reference in New Issue
Block a user