Running Livepeer as a systemd service, almost working script, need to figure out one thing


I’ve repurposed and updated a script someone wrote to run a cosmos validator as a systemd service, to run livepeer as a systemd service. It assumes you’re running a local GETH light node.

It’s close to functioning. I’m stuck because running the ./livepeer command requires a password input.

Does anyone know how to update the script to pass the password to it?

echo “[Unit]
Description=Livepeer Node
ExecStart=/home/liveuser01/livepeer_linux/livepeer —transcoder -ethUrl ws:// -publicIP {YOUR TRANSCODER IP ADDRESS}
[Install]” > livepeer.service

sudo mv livepeer.service /etc/systemd/system/
sudo systemctl enable livepeer.service