forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: support killing running snap apps (canonical#14160)
* systemd: add a method to list units by pattern This method will be used later to list all snap apps' transient units using the pattern "<snap-name>.*.scope". Signed-off-by: Zeyad Gouda <[email protected]> * snap: add helper to match snap transient scope units This helper will be used to find running snap apps that need to be force killed. Signed-off-by: Zeyad Gouda <[email protected]> * usersession: support killing running snap apps The new /v1/app-control endpoint currently only supports the "kill" action. This action finds and kills all running apps for the requested snaps. This endpoint will be invoked by snapd during removal of snaps when the --terminate flag is used. Signed-off-by: Zeyad Gouda <[email protected]> snap: move kill reason to snap package Signed-off-by: Zeyad Gouda <[email protected]> usersession: use syscall.Signal type for AppInstruction.Signal Thanks @zyga Signed-off-by: Zeyad Gouda <[email protected]> --------- Signed-off-by: Zeyad Gouda <[email protected]>
- Loading branch information
1 parent
3a71035
commit 5f7d584
Showing
12 changed files
with
655 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.