Skip to content

Commit c65422a

Browse files
authored
Destroy epair interface if stop isn't called from start (#230)
This requires some thought, since I assume the original check was in there for a reason. Fixes #229
1 parent ad6ca65 commit c65422a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
### Fixed
10+
- stop: Destroy epair interface if stop is not called from start (#229)
11+
912
## [0.15.2] 2022-09-17
1013
### Fixed
1114
- start: fix pot getting stuck in state "starting" on pot start failure (#227)

share/pot/stop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ _js_stop()
4141
_pdir="${POT_FS_ROOT}/jails/$_pname"
4242
_network_type=$( _get_pot_network_type "$_pname" )
4343
if _is_pot_running "$_pname" ; then
44-
if _is_pot_vnet "$_pname" && [ -z "$_epair" ] && [ "$_from_start" = "YES" ]; then
44+
if _is_pot_vnet "$_pname" && [ -z "$_epair" ]; then
4545
_epair=$(jexec "$_pname" ifconfig | grep ^epair | cut -d':' -f1)
4646
_epair="${_epair%b}a"
4747
fi

0 commit comments

Comments
 (0)