[Bug 1328556] Re: init/irqbalance should support $OPTIONS
Louis Bouchard
louis.bouchard at canonical.com
Fri Aug 22 12:29:58 UTC 2014
** Description changed:
+ [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"
** Patch removed: "lp1328556_add_options_support.debdiff"
https://bugs.launchpad.net/ubuntu/+source/irqbalance/+bug/1328556/+attachment/4183583/+files/lp1328556_add_options_support.debdiff
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to irqbalance in Ubuntu.
https://bugs.launchpad.net/bugs/1328556
Title:
init/irqbalance should support $OPTIONS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/irqbalance/+bug/1328556/+subscriptions
More information about the Ubuntu-server-bugs
mailing list