irqbalance fails to stop

Bug #383745 reported by Frode Haugsgjerd
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
irqbalance (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: irqbalance

Ubuntu 9.04 on a Hp Compaq nc8430 laptop
irqbalance:
  Installed: 0.55-2.4
  Candidate: 0.55-2.4
  Version table:
 *** 0.55-2.4 0
        500 http://no.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

start-stop-daemon fails to create /var/run/irqbalance.pid, so when i try to stop the daemon, the init script can't find the pid to kill.

froh@palw3012:~$ cat /etc/default/irqbalance
#Configuration for the irqbalance daemon

#Should irqbalance be enabled?
ENABLED=1
#Balance the IRQs only once?
ONESHOT="0"

froh@palw3012:~$ sudo bash -x /etc/init.d/irqbalance start 2>&1|tee /tmp/log
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/irqbalance
+ NAME=irqbalance
+ SNAME=irqbalance
+ DESC='SMP IRQ Balancer'
+ PIDFILE=/var/run/irqbalance.pid
+ PNAME=irqbalance
+ DOPTIONS=
+ ENABLED=0
+ OPTIONS=
+ ONESHOT=0
+ test -x /usr/sbin/irqbalance
+ test -f /etc/default/irqbalance
+ . /etc/default/irqbalance
++ ENABLED=1
++ ONESHOT=0
+ test 1 '!=' 0
+ test 0 '!=' 0
+ case "$1" in
+ echo -n 'Starting SMP IRQ Balancer: '
Starting SMP IRQ Balancer: + start-stop-daemon --start --pidfile /var/run/irqbalance.pid --name irqbalance --oknodo --startas /usr/sbin/irqbalance --
+ echo irqbalance.
irqbalance.
+ exit 0
froh@palw3012:~$ cat /tmp/log
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/irqbalance
+ NAME=irqbalance
+ SNAME=irqbalance
+ DESC='SMP IRQ Balancer'
+ PIDFILE=/var/run/irqbalance.pid
+ PNAME=irqbalance
+ DOPTIONS=
+ ENABLED=0
+ OPTIONS=
+ ONESHOT=0
+ test -x /usr/sbin/irqbalance
+ test -f /etc/default/irqbalance
+ . /etc/default/irqbalance
++ ENABLED=1
++ ONESHOT=0
+ test 1 '!=' 0
+ test 0 '!=' 0
+ case "$1" in
+ echo -n 'Starting SMP IRQ Balancer: '
Starting SMP IRQ Balancer: + start-stop-daemon --start --pidfile /var/run/irqbalance.pid --name irqbalance --oknodo --startas /usr/sbin/irqbalance --
+ echo irqbalance.
irqbalance.
+ exit 0

froh@palw3012:~$ cat /var/run/irqbalance.pid
cat: /var/run/irqbalance.pid: No such file or directory

froh@palw3012:~$ sudo bash -x /etc/init.d/irqbalance stop 2>&1|tee /tmp/log
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/irqbalance
+ NAME=irqbalance
+ SNAME=irqbalance
+ DESC='SMP IRQ Balancer'
+ PIDFILE=/var/run/irqbalance.pid
+ PNAME=irqbalance
+ DOPTIONS=
+ ENABLED=0
+ OPTIONS=
+ ONESHOT=0
+ test -x /usr/sbin/irqbalance
+ test -f /etc/default/irqbalance
+ . /etc/default/irqbalance
++ ENABLED=1
++ ONESHOT=0
+ test 1 '!=' 0
+ test 0 '!=' 0
+ case "$1" in
+ echo -n 'Stopping SMP IRQ Balancer: '
Stopping SMP IRQ Balancer: + start-stop-daemon --stop --pidfile /var/run/irqbalance.pid --name irqbalance --oknodo
No irqbalance found running; none killed.
+ echo irqbalance.
irqbalance.
+ exit 0

Revision history for this message
Peter Avramucz (muczy) wrote :

This one is already fixed in debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443369

Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed in karmic.

Regards
chuck

Changed in irqbalance (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.