aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd/miniupnpd.inc
diff options
context:
space:
mode:
authorRyan Wagoner <rsw686@pfsense.org>2006-10-28 13:53:51 +0000
committerRyan Wagoner <rsw686@pfsense.org>2006-10-28 13:53:51 +0000
commit4eb647ff56f691f71bd0a96ae65e7cb202043d47 (patch)
treef8ae7f41052af2eba13e51a005373c17473b202f /packages/miniupnpd/miniupnpd.inc
parent7e6bec1051309aac84212d0f516b232bdef78068 (diff)
downloadpfsense-packages-4eb647ff56f691f71bd0a96ae65e7cb202043d47.tar.gz
pfsense-packages-4eb647ff56f691f71bd0a96ae65e7cb202043d47.tar.bz2
pfsense-packages-4eb647ff56f691f71bd0a96ae65e7cb202043d47.zip
bump miniupnpd version which fixes memory leak
Diffstat (limited to 'packages/miniupnpd/miniupnpd.inc')
-rw-r--r--packages/miniupnpd/miniupnpd.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index a74a0377..d4f746e5 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -45,12 +45,12 @@
if($ifaces_final) {
/* valid paramters lets create rc file and start miniupnpd */
- $start = "if [ -e /var/run/miniupnpd.pid ]; then\n";
+ $start = "if [ `pgrep miniupnpd | wc -l` != 0 ]; then\n";
$start .= "/usr/bin/killall miniupnpd\n";
$start .= "# Clear existing rules and rdr entries \n";
$start .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
$start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
- $start .= "while [ -e /var/run/miniupnpd.pid ]; do sleep 1; done\n";
+ $start .= "while [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done\n";
$start .= "fi\n";
$start .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
@@ -62,7 +62,7 @@
$stop .= "# Clear existing rules and rdr entries \n";
$stop .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
$stop .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
- $stop .= "while [ -e /var/run/miniupnpd.pid ]; do sleep 1; done";
+ $stop .= "while [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done";
write_rcfile(array(
"file" => "miniupnpd.sh",
"start" => $start,