diff --git a/etc/systemd/system/onlyone.service b/etc/systemd/system/onlyone.service new file mode 100644 index 0000000..2a04f9e --- /dev/null +++ b/etc/systemd/system/onlyone.service @@ -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 \ No newline at end of file