[Unit] Description=Start ngrok tunnel on startup After=network-online.target Wants=network-online.target systemd-networkd-wait-online.service [Service] ExecStart=/usr/local/bin/ngrok start --all --config /home/pi/video-player/ngrok.yml ExecReload=/bin/kill -HUP $MAINPID KillMode=process IgnoreSIGPIPE=true Restart=always RestartSec=3 Type=simple [Install] WantedBy=multi-user.target