Commit f738818
authored
[sonic-package-manager] stop service explicitelly before uninstalling package (sonic-net#1805)
#### What I did
Fixed an issue with uninstall.
1. When disabling the feature by setting its state to disabled in FEATURE table and then uninstalling it, there is a possibility that service hasn't fully stopped yet.
2. When uninstalling with --force option, and reinstalling the package with --enable option the service does not start.
#### How I did it
Stop and disable service explicitely before uninstalling package.
#### How to verify it
```
sudo spm uninstall cpu-report --force && sudo spm install cpu-report=10.0.0 -v DEBUG -y --enable && docker ps
```1 parent d8ee5e9 commit f738818
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
438 | 449 | | |
439 | 450 | | |
440 | 451 | | |
| |||
0 commit comments