Commit 2e506e47 authored by Ad Schellevis's avatar Ad Schellevis

fix igmpproxy startup

parent 95ba4111
...@@ -1342,7 +1342,7 @@ EOD; ...@@ -1342,7 +1342,7 @@ EOD;
} }
$igmpconf .= "\n"; $igmpconf .= "\n";
$igmpfl = fopen('/tmp/igmpproxy.conf', 'w'); $igmpfl = fopen('/usr/local/etc/igmpproxy.conf', 'w');
if (!$igmpfl) { if (!$igmpfl) {
log_error(gettext("Could not write Igmpproxy configuration file!")); log_error(gettext("Could not write Igmpproxy configuration file!"));
return; return;
...@@ -1351,8 +1351,7 @@ EOD; ...@@ -1351,8 +1351,7 @@ EOD;
fclose($igmpfl); fclose($igmpfl);
unset($igmpconf); unset($igmpconf);
/* NOTE: -d4 means everything LOG_WARNING and smaller */ mwexec('/usr/local/etc/rc.d/igmpproxy onestart');
mwexec('/usr/local/sbin/igmpproxy -d4 -c /tmp/igmpproxy.conf');
log_error(gettext("Started IGMP proxy service.")); log_error(gettext("Started IGMP proxy service."));
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment