[Bug 1328556] [NEW] init/irqbalance should support $OPTIONS

Launchpad Bug Tracker 1328556 at bugs.launchpad.net
Fri Aug 22 12:30:17 UTC 2014


You have been subscribed to a public bug by Louis Bouchard (louis-bouchard):

[SRU justification]
Without this modification, adding an $OPTIONS variable in /etc/default/irqbalance is useless.

[Impact]
Impossibility to add startup options using $OPTIONS

[Fix]
Add $OPTIONS to the upstart script similar to what is used in the SysV script

[Test Case]
Run the following script :

#!/bin/bash


apt-get update && apt-get -y install irqbalance

cat << EOF >> /etc/default/irqbalance
OPTIONS="--hintpolicy=ignore"
EOF

restart irqbalance

Return=$(ps aux | grep irqbalance | grep -v grep | grep hintpolicy)

if [[ -z $Return ]];then
   # Test fails : $OPTIONS not taken into account
   echo "Test Failed"
   exit -1
else
   echo "Test Succeeded"
   exit 0
fi

[Regression]
Risk of irqbalance not starting if invalid option were present in /etc/default/irqbalance previously

[Original description of the problem]

/etc/init.d/irqbalance supports setting an $OPTIONS variable to pass
parameters to the irqbalance daemon

/etc/init/irqbalance should also support an $OPTIONS variable.

Usage example to workaround #1321425
/etc/default/irqbalance
OPTIONS="--hintpolicy=ignore"

** Affects: irqbalance (Ubuntu)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: Fix Released

** Affects: irqbalance (Ubuntu Trusty)
     Importance: Medium
     Assignee: Louis Bouchard (louis-bouchard)
         Status: Confirmed


** Tags: patch
-- 
init/irqbalance should support $OPTIONS
https://bugs.launchpad.net/bugs/1328556
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list