Bug#565480: anacron: rule in pm-utils/power.d works the opposite way as it should

2012-03-23 Thread Peter Eisentraut
It is clearly documented that for power.d scripts the argument true
means it's going to battery power, so stopping anacron is the
appropriate action in that case.  I don't follow the assertion that this
is backwards.  If you system is misbehaving, you might need to be
looking into a pm-utils bug.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#565480: anacron: rule in pm-utils/power.d works the opposite way as it should

2010-01-15 Thread Jean-Luc Coulon (f5ibh)
Package: anacron
Version: 2.3-14
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I hibernate my system via the gnome menu.

At restart, /usr/lib/pm-utils/power.d/anacron is executed.
In pm-powered.log, I can see:
/usr/lib/pm-utils/power.d/anacron true: success.

Unfortunately, the rule in coded the opposite way as it should and the true
entry of the case statement stop anacron.

If I replace stop with start, anacron is started at system wakeup:

case $1 in
false)
/usr/sbin/invoke-rc.d anacron stop /dev/null   
;;
true)
/usr/sbin/invoke-rc.d anacron start /dev/null   
;;
esac

It seems that the rules are coded like a resume parameter is passed 
while waking up after hibernate which is not the case.

Regards

Jean-Luc




- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-k8-5 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages anacron depends on:
ii  debianutils   3.2.2  Miscellaneous utilities specific t
ii  libc6 2.10.2-5   Embedded GNU C Library: Shared lib
ii  lsb-base  3.2-23 Linux Standard Base 3.2 init scrip

Versions of packages anacron recommends:
ii  cron  3.0pl1-106 process scheduling daemon
ii  rsyslog [system-log-daemon]   4.4.2-1enhanced multi-threaded syslogd

Versions of packages anacron suggests:
ii  exim4-daemon-light [mail-tran 4.71-3 lightweight Exim MTA (v4) daemon
ii  powermgmt-base1.31   Common utils and configs for power

- -- no debconf information

- -- debsums errors found:
debsums: changed file /usr/lib/pm-utils/power.d/anacron (from anacron package)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLUWJpUdGGXzzGnNARAprIAKCTeTbpAtqHe9OyF8WyxXUSi2E17ACfcku5
601HKHIe3SM6+u6LwOmNqok=
=ek3f
-END PGP SIGNATURE-





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org