- actually, use a different lockfile for oneshot mode

This commit is contained in:
Peter Jones 2006-09-13 18:03:38 +00:00
parent 54c84aaa2c
commit 2ca7411343
2 changed files with 13 additions and 4 deletions

View File

@ -43,12 +43,21 @@ esac
RETVAL=0
start() {
if [ -n "$ONESHOT" -a -f /var/lock/irqbalance ]; then
exit 0
fi
echo -n $"Starting $prog: "
daemon irqbalance $ONESHOT
RETVAL=$?
echo
[ $RETVAL -eq 0 -a -z "$ONESHOT" ] && touch /var/lock/subsys/irqbalance
return $RETVAL
if [ $RETVAL -eq 0 ]; then
if [ -n "$ONESHOT" ]; then
touch /var/lock/subsys/irqbalance
else
touch /var/lock/irqbalance
fi
fi
return $RETVAL
}

View File

@ -1,7 +1,7 @@
Summary: IRQ balancing daemon.
Name: irqbalance
Version: 1.13
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 1
Group: System Environment/Base
License: GPL/OSL
@ -72,7 +72,7 @@ exit 0
%changelog
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 1.13-3
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 1.13-4
- Fix subsystem locking
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 1.13-2