I'm not sure if this repo accept's pulls or that issues are reviewed/handeld. So i'll just drop the steps i did to make this script run in the background for anyone who happen to look for that.
Make a rootless user and clone the files you need in it's home directory.
Allow the user to linger so it can background processes: sudo loginctl enable-linger rootlessusername
Add this line into the .bashrc file of the user: export XDG_RUNTIME_DIR=/run/user/$UID . That way if you su - rootlessusername you can interract with the service unit as a user.
Make the needed directory: mkdir -p ~/.config/systemd/user
Make the service file, replace the path with the path of where the script is!
I'm not sure if this repo accept's pulls or that issues are reviewed/handeld. So i'll just drop the steps i did to make this script run in the background for anyone who happen to look for that.
sudo loginctl enable-linger rootlessusername
export XDG_RUNTIME_DIR=/run/user/$UID .
That way if you su - rootlessusername you can interract with the service unit as a user.cat .config/systemd/user/estreamer.service
systemctl --user deamon-reload
systemctl --user stat estreamer.service
systemctl --user enable --now estreamer.service
This has been tested. If you do use this service make sure to stop it if you interract with the script through the terminal!