这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #260952
s-s-d: Please allow test mode to be enabled via environment variable

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: vagrant@debian.org

Date: Fri, 23 Jul 2004 00:03:01 UTC

Severity: wishlist

Found in version 1.10.22

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Development <debian-dpkg@lists.debian.org>:
Bug#260952; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <bugsquish@freegeek.org>:
New Bug report received and forwarded. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <bugsquish@freegeek.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: start-stop-daemon should have no-action mode
Date: Thu, 22 Jul 2004 16:47:03 -0700
Package: dpkg
Version: 1.10.22
Severity: wishlist

when working with a chroot, it would be most useful if start-stop-daemon
could have a no-action mode defined by an environment variable, such as:

START_STOP_DAEMON_NO_ACT=true

if the environment variable were present, start-stop-daemon should
merely report something like:

"NOTE: start-stop-daemon called in no act mode, exiting"

and exit with status 0

this would be useful for packages such as debootstrap so that it
wouldn't have to move aside the start-stop-daemon during base
installation.

lessdisks-terminal is another package which could make use of this
feature.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.4.26-1-386
Locale: LANG=C, LC_CTYPE=C

Versions of packages dpkg depends on:
ii  dselect                     1.10.22      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an

-- no debconf information



Changed Bug title. Request was from jdthood@yahoo.co.uk (Thomas Hood) to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Scott James Remnant <scott@netsplit.com>:
Bug#260952; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
Extra info received and forwarded to list. Copy sent to Scott James Remnant <scott@netsplit.com>. (full text, mbox, link).


Message #12 received at 260952@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: 260952@bugs.debian.org
Subject: Re: [S-S-D] Please allow test mode to be enabled via environment variable
Date: Thu, 18 Aug 2005 10:53:33 +0200
[Vagrant Cascadian]
> lessdisks-terminal is another package which could make use of this
> feature.

If this feature is implemented in the start-stop-daemon itself, we
would be able to use it in debian-installer, replacing code
implementing our own start-stop-daemon with the simple setting of an
evironment variable.

At the moment we have code like this in apt-install (from
debian-installer-utils):

  # Create a policy-rc.d to stop maintainer scripts using invoke-rc.d from
  # running init scripts. In case of maintainer scripts that don't use
  # invoke-rc.d, add a dummy start-stop-daemon.
  disable_daemons () {
          cat > /target/usr/sbin/policy-rc.d <<EOF
  #!/bin/sh
  exit 101
  EOF
          chmod a+rx /target/usr/sbin/policy-rc.d

          if [ -e /target/sbin/start-stop-daemon ]; then
                  mv /target/sbin/start-stop-daemon /target/sbin/start-stop-daemon.REAL
          fi
          cat > /target/sbin/start-stop-daemon <<EOF
  #!/bin/sh
  echo 1>&2
  echo 'Warning: Fake start-stop-daemon called, doing nothing.' 1>&2
  exit 0
  EOF
          chmod a+rx /target/sbin/start-stop-daemon
  }

  enable_daemons () {
          rm -f /target/usr/sbin/policy-rc.d

          rm /target/sbin/start-stop-daemon
          mv /target/sbin/start-stop-daemon.REAL /target/sbin/start-stop-daemon
  }

I also had to do similar things when I made a script to test upgrades.
In that script I used divert.

  make_dummy_start_stop_daemon() {
      cat > $target/sbin/start-stop-daemon.dummy <<EOF
  #!/bin/sh
  echo 1>&2
  echo 'Warning: Fake start-stop-daemon called, doing nothing.' 1>&2
  exit 0
  EOF
      chmod a+rx $target/sbin/start-stop-daemon.dummy
      chroot $target dpkg-divert --add --local --rename /sbin/start-stop-daemon
      ln -s start-stop-daemon.dummy $target/sbin/start-stop-daemon
  }

So there are workarounds, but it would be better if the functionallity
was in the normal start-stop-daemon.



Changed Bug submitter from Vagrant Cascadian <bugsquish@freegeek.org> to vagrant+bugs@freegeek.org. Request was from "Vagrant Cascadian (bugs)" <vagrant+bugs@freegeek.org> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title to 's-s-d: Please allow test mode to be enabled via environment variable' from '[S-S-D] Please allow test mode to be enabled via environment variable' Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 29 Mar 2015 00:03:10 GMT) (full text, mbox, link).


Changed Bug submitter to 'vagrant@debian.org' from 'vagrant+bugs@freegeek.org'. Request was from Vagrant Cascadian <vagrant@debian.org> to control@bugs.debian.org. (Thu, 07 Dec 2017 22:33:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jul 28 11:20:13 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.