Is there an interface that would allow a command to stop and/or start a snap?
On classic confinement I can do snap stop ${SNAP_NAME} --disable
. How can i do that under strict confinement?
Is there an interface that would allow a command to stop and/or start a snap?
On classic confinement I can do snap stop ${SNAP_NAME} --disable
. How can i do that under strict confinement?
From within the snap, try snapctl
instead of snap
.
Note this will only work for services within the same snap, one snap is not allowed to manage other snap’s services