aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-05 16:51:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-05 16:51:37 +0000
commit8078762dab541d77df29cb876c012de6bbd2fc0e (patch)
tree0a830a30ebdb22d608176527f9c3a265dc558e29 /packages/miniupnpd
parent1be83941c9642a402808d858a0368873e4638c0a (diff)
downloadpfsense-packages-8078762dab541d77df29cb876c012de6bbd2fc0e.tar.gz
pfsense-packages-8078762dab541d77df29cb876c012de6bbd2fc0e.tar.bz2
pfsense-packages-8078762dab541d77df29cb876c012de6bbd2fc0e.zip
Kill previous running miniupnpd processes before starting.
Do not start_service() and then restart_service() causing the service to be launched 2 times.
Diffstat (limited to 'packages/miniupnpd')
-rw-r--r--packages/miniupnpd/miniupnpd.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index b3829ff3..4b3d81e4 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -35,7 +35,7 @@
$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 .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
+ $start .= "killall miniupnpd; /usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
/* override wan ip address, common for carp, etc */
if($overridewanip)
@@ -53,7 +53,6 @@
);
}
start_service("miniupnpd");
- restart_service("miniupnpd");
config_unlock();
conf_mount_ro();
}