I don’t recommend using the shell on routers for day-to-day management. Instead, consider using a network configuration management system like rconfig. I’ve used RANCID in the past, but I suspect something more modern like rconfig will be useful to you.
Doesn’t systemd have the ability to do this as well with unix sockets?