Skip to content

Commit

Permalink
Merge pull request #4120 from nextcloud/enh/4098/matterbridge-process…
Browse files Browse the repository at this point in the history
…-priority

Give low priority to matterbridge processes
  • Loading branch information
nickvergessen authored Sep 7, 2020
2 parents bf37e6c + 4b84e59 commit ac2d6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MatterbridgeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private function launchMatterbridge(Room $room): int {
$configPath = sprintf('/tmp/bridge-%s.toml', $room->getToken());
$outputPath = sprintf('/tmp/bridge-%s.log', $room->getToken());
$cmd = sprintf('%s -conf %s', $binaryPath, $configPath);
$pid = exec(sprintf('%s > %s 2>&1 & echo $!', $cmd, $outputPath), $output, $ret);
$pid = exec(sprintf('nice -n19 %s > %s 2>&1 & echo $!', $cmd, $outputPath), $output, $ret);
$pid = intval($pid);
if ($ret !== 0) {
$pid = 0;
Expand Down

0 comments on commit ac2d6e6

Please sign in to comment.