Debian Bug report logs - #339460
sysv-rc: update-rc.d: Please add option to restore symlinks to factory defaults

version graph

Package: init-system-helpers; Maintainer for init-system-helpers is Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>; Source for init-system-helpers is src:init-system-helpers (PTS, buildd, popcon).

Reported by: Martin-Éric Racine <martin-eric.racine@iki.fi>

Date: Wed, 16 Nov 2005 13:48:07 UTC

Severity: wishlist

Tags: wontfix

Merged with 126533, 179210, 183460

Found in version init-system-helpers/1.25

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#339460; Package sysv-rc. (full text, mbox, link).


Acknowledgement sent to Martin-Éric Racine <q-funk@iki.fi>:
New Bug report received and forwarded. Copy sent to sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Martin-Éric Racine <q-funk@iki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: sysv-rc: update-rc.d option to redo all symlinks for all pacakges to their postinst defaults
Date: Wed, 16 Nov 2005 15:36:45 +0200
Package: sysv-rc
Version: 2.86.ds1-5
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It would be desirable to have an option to redo all symlinks for all packages (if no package name is passed as 
argument; otherwise only redo the package passed as argument), to be used manually to clean up after upgrading to 
more recent versions of certain packages that leave no longer needed symlinks.

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

iD8DBQFDezXteXr56x4Muc0RAiroAJ4kciKvWUDTkKbmR0F63PWgoybVhgCeJhBg
HH70LCO2HxwC7VrmZFwE13U=
=ATes
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#339460; Package sysv-rc. (full text, mbox, link).


Acknowledgement sent to Martin-Éric Racine <q-funk@iki.fi>:
Extra info received and forwarded to list. Copy sent to sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Martin-Éric Racine <q-funk@iki.fi>
To: 339460@bugs.debian.org
Subject: Bug#339460: update-rc.d: a partial implementation of what I propose
Date: Wed, 16 Nov 2005 15:55:11 +0200
[Message part 1 (text/plain, inline)]
1) find out which packages have bootup scripts:
"dpkg -S /etc/init.d/* | cut -f 1 -d : | uniq | sort | uniq"
Caveat:  find a way to remove scripts that belong to no package.

2) for-next loop removing all symlinks for each, using update-rc.d

3) for-next loop redoing the post-install scripts of each (which is
where update-rc.d would make the symlinks during installation).

-- 
Martin-Éric Racine
http://q-funk.iki.fi
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#339460; Package sysv-rc. (full text, mbox, link).


Acknowledgement sent to Martin-Éric Racine <q-funk@iki.fi>:
Extra info received and forwarded to list. Copy sent to sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Martin-Éric Racine <q-funk@iki.fi>
To: 339460@bugs.debian.org
Subject: Bug#339460: update-rc.d: a partial implementation of what I propose
Date: Wed, 16 Nov 2005 16:46:22 +0200
[Message part 1 (text/plain, inline)]
Ugly but it does a fine job as a proof of concept:

#!/bin/sh
# restore RC symbolic links per each package's postinst script defaults
packages=`dpkg -S /etc/init.d/* | cut -f 1 -d : | sort | uniq | xargs`
for name in $packages; do
        update-rc.d -f $name remove
done
apt-get --reinstall install $packages
#EOF

Of course, ideally, we would have all package scripts guaranteed to be
fully idempotent, which would then make it easier to just grep and call
each /var/lib/dpkg/info/$name.postinst for a replay.

-- 
Martin-Éric Racine
http://q-funk.iki.fi
[signature.asc (application/pgp-signature, inline)]

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


Merged 126533 183460 339460. Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. (full text, mbox, link).


Message sent on to Martin-Éric Racine <q-funk@iki.fi>:
Bug#339460. (full text, mbox, link).


Message #22 received at 339460-submitter@bugs.debian.org (full text, mbox, reply):

From: Thomas Hood <jdthood@yahoo.co.uk>
To: 339460-submitter@bugs.debian.org
Subject: merge
Date: Thu, 17 Nov 2005 12:19:45 +0100
retitle 339460 sysv-rc: update-rc.d: Please add option to restore symlinks to factor defaults
merge 339460 183460
stop

Implementing this requires implementing some mechanism whereby the factory
default configuration is recorded somewhere.  The latter has been requested
before so I am merging this report.

-- 
Thomas Hood



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


Merged 126533 179210 183460 339460. Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. (full text, mbox, link).


Tags removed: patch Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. (full text, mbox, link).


Tags added: wontfix Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org. (full text, mbox, link).


Added indication that bug 339460 blocks 568974 Request was from kurt@roeckx.be (Kurt Roeckx) to control@bugs.debian.org. (Tue, 09 Feb 2010 17:54:09 GMT) (full text, mbox, link).


Changed Bug submitter to 'Martin-Éric Racine <martin-eric.racine@iki.fi>' from 'Martin-Éric Racine <q-funk@iki.fi>' Request was from Martin-Éric Racine <martin-eric.racine@iki.fi> to control@bugs.debian.org. (Tue, 30 Nov 2010 22:54:25 GMT) (full text, mbox, link).


Bug reassigned from package 'sysv-rc' to 'init-system-helpers'. Request was from Andreas Henriksson <andreas@fatal.se> to control@bugs.debian.org. (Mon, 18 Jan 2016 17:53:00 GMT) (full text, mbox, link).


No longer marked as found in versions 2.85-22 and sysv-rc/2.86.ds1-5. Request was from Andreas Henriksson <andreas@fatal.se> to control@bugs.debian.org. (Mon, 18 Jan 2016 17:53:02 GMT) (full text, mbox, link).


Marked as found in versions init-system-helpers/1.25. Request was from Andreas Henriksson <andreas@fatal.se> to control@bugs.debian.org. (Mon, 18 Jan 2016 17:53:03 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: Sun Jan 7 04:32:06 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.