Bug#445420: gpm: add /etc/default/gpm to control daemon startup at boot (with option ENABLED)

Jari Aalto jari.aalto at cante.net
Fri Oct 5 16:46:29 UTC 2007


Package: gpm
Version: 1.19.6-25
Severity: wishlist


In servers, that do not contain X, the gpm is very handy. However, the
gpm process does not need to be started at boot to consume memory at
low mem systems (I have 64M; NFS server). The sysadm can start it
manually when he logs in.

 I suggest to use similar approach as with other daemons:

1. Add /etc/default/gpm with one entry:

    ENABLED="yes"		# or no

2. /etc/init.d/gpm sources this configuration file (pseudo code):

    . /lib/lsb/init-functions

    ...
    ENABLED="yes"		# set default value
    [ -f /etc/default/gpm ] && . /etc/default/gpm

    fi [ ! "$ENABLED" = "yes" ]; then
	log_warning_msg "gpm is disabled by /etc/default/gpm directive (ENABLED=\"$ENABLED\")"
	exit 0
    fi

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages gpm depends on:
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy
ii  debianutils                   2.25.1     Miscellaneous utilities specific t
ii  libc6                         2.6.1-5    GNU C Library: Shared libraries
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip
ii  ucf                           3.003      Update Configuration File: preserv

gpm recommends no packages.

-- debconf information excluded





More information about the pkg-gpm-devel mailing list