Hi,
I think the best option here is REST API. There are endpoints available as part of the package-manager API to restart snap services.
I tried to run the bash command below from within a confined snap and permission is denied. Even with the snapd-control interface connected, this will not execute.
snap restart snap-name
Since all of the real-time applications on the CORE are integrated into the Celix framework, I don't believe there would be any way to restart the framework without restarting the entire system. @nickH please correct me if I'm wrong about this.
If you have SSH access on the system, you could of course programatically restart the snap from outside of the snap environment.
... View more