Created attachment 1166035 [details] Add systemd service, update source uris Description of problem: Although 'pppd call' is callable from command line it's a little cumbersome to handle as a long-running service e. g., a VPN connection. One solution is to add a systemd service which runs disconnected from session and with a standard set of tools. Enclosing patch, which also updates source uris. The ppp-watch uri needs a thorough review, is this really the right way? The service is just a wrapper to 'pppd call' so the connection must be defined in /etc/ppp/peers/.
It has been years, the unit could be updated a bit. I'm personally using service adapted from https://www.sherbers.de/diy-linux-router-part-3-pppoe-and-routing/ One small change: - ppp 2.5.0 has `up_sdnotify` configuration option, which enables `Type=notify`