Might not have looked in the correct place, but I was unable to find
any policy for the /usr/lib/pm-utils/*.d/ and /etc/pm/*.d/
directories. IMHO this is urgently needed.
I just discovered that aiccu had added a script in /etc/pm/sleep.d
which make the system hang for seconds on resume, unless you've got
a working network. Totally unacceptable to me. A policy
regulating runtimes for such scripts would be welcome.
Looking at the other scripts installed in /etc/pm/sleep.d on my
laptop, I was even more surprised to find that unattended-upgrades
had installed a script which will make hibernate wait until a
running unattended-upgrades job is finished. I can see how this
will scale if any package installing cron jobs should do the same...
A policy stating both what kind of actions are acceptable, and
setting maximum delays, is obviously necessary.
In addition, there seem to be a bit of confusion whether packages
should add hooks to /etc/pm/ or /usr/lib/pm-utils/. Policy required
here as well.
I will of course report bugs against aiccu and unattended-upgrades
as well. But the fact that they do implement such hooks demonstrates
the need for clarification.
Bjørn
- -- System Information:
Debian Release: 6.0
APT prefers testing
APT policy: (990, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pm-utils depends on:
ii console-tools 1:0.2.3dbs-69.1 Linux console and font utilities
ii powermgmt-base 1.31 Common utils and configs for power
Versions of packages pm-utils recommends:
ii procps 1:3.2.8-9 /proc file system utilities
ii radeontool 1.6.1-1 utility to control ATI Radeon back
ii vbetool 1.1-2 run real-mode video BIOS code to a
Versions of packages pm-utils suggests:
ii cpufrequtils 007-1 utilities to deal with the cpufreq
- -- no debconf information
iEYEARECAAYFAk00eI0ACgkQ10rqkowbIsnc0QCeMVApobouOY0HZK/gZF6Jn7fV
TqgAniWxWAGlFeBiTJQg0Pa3Ahkz6LSx
=lGp8
-----END PGP SIGNATURE-----