I’d like to have a supervisor service that is able to monitor the health of other snaps and overall system, performing commands as required, such as:
- systemctl daemon-reload
- reboot
- snap revert app-name
Is it possible for this service to be deployed as a snap or does it have to be deployed as a regular service outside of the snap ecosystem?
I have tried moving this service into a snap but if the snap service tries perform the any of above commands, I get the expected “Running in chroot, ignoring request.” errors.
I have tried adding the core-support plug to my snap, which gets auto-connected on install but still cant perform the above commands. I understand this is probably a feature not a bug, but was wondering if there are any suggestions for my use case.