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

fix igmpproxy startup

parent 95ba4111
......@@ -1342,7 +1342,7 @@ EOD;
}
$igmpconf .= "\n";
$igmpfl = fopen('/tmp/igmpproxy.conf', 'w');
$igmpfl = fopen('/usr/local/etc/igmpproxy.conf', 'w');
if (!$igmpfl) {
log_error(gettext("Could not write Igmpproxy configuration file!"));
return;
......@@ -1351,8 +1351,7 @@ EOD;
fclose($igmpfl);
unset($igmpconf);
/* NOTE: -d4 means everything LOG_WARNING and smaller */
mwexec('/usr/local/sbin/igmpproxy -d4 -c /tmp/igmpproxy.conf');
mwexec('/usr/local/etc/rc.d/igmpproxy onestart');
log_error(gettext("Started IGMP proxy service."));
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