Skip to content

Commit

Permalink
fix igmpproxy startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Mar 16, 2015
1 parent 95ba411 commit 2e506e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/etc/inc/services.inc
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 2e506e4

Please sign in to comment.