Keep your connection to a customer’s network through reboots and crashes by running the ngrok agent as a system service.
You can install ngrok in your customer’s network as a native background system service.
This ensures the ngrok agent starts on boot and restarts if it crashes for any reason.Installing ngrok as a service helps you recover connectivity in the case of unexpected software or hardware failures.
When you do so, ngrok starts all endpoints defined in the configuration file.
ngrok service install --config /etc/ngrok.ymlngrok service start
In most cases, installing ngrok as a service requires administrator privileges.