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
After=network-online.target
[Service]
User=livepeer
ExecStart=/home/liveuser01/livepeer_linux/livepeer —transcoder -ethUrl ws://127.0.0.1:8546 -publicIP {YOUR TRANSCODER IP ADDRESS}
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target” > livepeer.service
sudo mv livepeer.service /etc/systemd/system/
sudo systemctl enable livepeer.service