Skip to content

Commit

Permalink
Add process control plug (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaisHer authored Oct 16, 2023
1 parent 82b6c38 commit 8ca5ae2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ Connect the [`bluez`](https://snapcraft.io/docs/bluez-interface) interface for d
sudo snap connect chip-tool:bluez
```

Connect the [`process-control`](https://snapcraft.io/docs/process-control-interface) interface for system-wide process management. This is needed to grant Chip Tool access to make [sched_setattr](https://man7.org/linux/man-pages/man2/sched_setattr.2.html) system calls. This may improve the reliability of the operations (see https://github.com/canonical/chip-tool-snap/issues/8).
```bash
sudo snap connect chip-tool:process-control
```

> **Note**
> On **Ubuntu Core**, the `avahi-control` and `bluez` interfaces are not provided by the system.
>
Expand Down
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ apps:
- network
- bluez
- avahi-observe
- process-control
environment:
# Replace the path for chip-tool configuration files
TMPDIR: "/mnt"

0 comments on commit 8ca5ae2

Please sign in to comment.