net/upnp: change killbypid() to wait by default

This commit is contained in:
Franco Fichtner 2023-03-14 07:55:10 +01:00
parent f3b14c91e6
commit 58f5f8f1bc
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PLUGIN_NAME= upnp
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_DEPENDS= miniupnpd-devel
PLUGIN_COMMENT= Universal Plug and Play Service
PLUGIN_MAINTAINER= franco@opnsense.org

View File

@ -80,7 +80,8 @@ function miniupnpd_start()
function miniupnpd_stop()
{
killbypid('/var/run/miniupnpd.pid', 'TERM', true);
killbypid('/var/run/miniupnpd.pid');
mwexec('/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null');
mwexec('/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null');
}