mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/upnp: change killbypid() to wait by default
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user