Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prune: Only attempt to stop pot if it is running #295

Merged
merged 2 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unrelease
## Unreleased
### Added
- import/prepare: Support setting a default signature public key to verify pot signature (#296)

### Fixed
- prune: Only attempt to stop pot if it is running (#295)

## [0.16.0] 2023-12-30
### Added
- tinirc: Write tinirc's pid to /tmp/tinirc.pid (#277)
Expand Down
4 changes: 3 additions & 1 deletion share/pot/prune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ _prune_pot()
if [ "$_dry_run" = "YES" ]; then
return
fi
pot-cmd stop "$_pname"
if _is_pot_running "$_pname" ; then
pot-cmd stop "$_pname"
fi
if ! pot-cmd destroy -p "$_pname" ; then
_qerror "$_quiet" "Error while pruning $_pname"
else
Expand Down
Loading