Development/Docs/suspend-scripts migration

From Mandriva Community Wiki

Jump to: navigation, search
Migration from suspend-scripts to new pm-utils

This page describes the status of migration from suspend-scripts to new pm-utils. It shows how suspend-scripts hooks and configuration facilities have been converted to pm-utils hooks.

Contents

Old suspend-scripts

Hooks in /etc/sysconfig/suspend-scripts/suspend.d/

  • beep: dropped
  • clock: implemented in upstream 90clock
  • hddisks: ported as 92disk
  • kernel: ported as 01bootloader
  • modules: implemented in upstream 50modules (use SUSPEND_MODULES)
  • network: ported as 10network
  • pcmcia: ported as 30pcmcia
  • services: dropped
  • sound: dropped
  • usb: dropped (mostly obsolete)
  • video: implemented in upstream 20video, wltool dropped (replaced by quirks from hal-info)
  • xlock: ported as 40xlock

List of restarted services

  • alsa: dropped, not sure if it's still useful
  • anacron: dropped
  • athcool: dropped
  • cpufreq: dropped, handled by 14cpufreq
  • cpufreqd: dropped
  • gpm: dropped, not required anymore
  • haldaemon: dropped, not required
  • irda: dropped
  • mDNSResponder: droped, service is not used anymore
  • mysqld: restarted in 06mysqld
  • nfs: restarted in 10network
  • ntpd: dropped
  • pcmcia: dropped, service does not exist anymore
  • postfix: dropped, not sure if it's still useful
  • xinetd: dropped, not sure if it's still useful

Configuration

/etc/sysconfig/suspend

New pm-utils

Upstream hooks in /etc/pm/hooks

  • 00clear
  • 01grub (dropped in Mandriva package, replaced by 01bootloader)
  • 05led
  • 10NetworkManager
  • 20video
  • 49bluetooth
  • 50modules
  • 90clock
  • 94cpufreq
  • 95led

Mandriva added hooks

  • 01bootloader
  • 06mysqld
  • 10network
  • 30pcmcia
  • 40xlock
  • 92disk

Configuration

/etc/pm/config

Features lost during pm-utils migration

Autowake

autowake support could be implemented in a 01autowake hook

Restarted services

There is no services hook anymore, and no global RESTART_SERVICES option stating which services should be restarted anymore. Instead, pm-utils hooks have to be written. The main advantage is that services ordering is more flexible.

These hooks could be splitted out and packaged in the rpm holding the respective init.d service.

Personal tools
Ad (via La Vignette)
Looking for a job?