[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with update-rc.d



In article <[🔎] Pine.LNX.3.96.980312001714.16954A-100000@moebius.interdestination.net>,
Zed Pobre <zed@moebius.interdestination.com> wrote:
>While investigating the situation that broke shutdown among
>other things on my machine, I discovered the following -- update-rc.d
>refuses to modify a symlink in /etc/rc?.d if it isn't pointing exactly
>at ../init.d/<file-in-question> -- even if it IS pointing at
>/etc/init.d/<file-in-question>.  The major problem is that all of my
>symlinks in rc?.d are in the format of /etc/init.d/<file-in-question>

Ah, you probably copied things around or restored them from a backup
so that the relative links got converted to absolute links (which is bad).

>and I know of at least one other person now who experienced similar
>symptoms to mine and who probably has exactly the same problem.  

Does this help?

--- /usr/sbin/update-rc.d	Thu Mar  5 15:10:41 1998
+++ update-rc.d	Thu Mar 12 11:21:24 1998
@@ -73,7 +73,7 @@
 	if (! defined $linkdst) {
 	    die ("update-rc.d: error reading symbolic link: $!\n");
 	}
-	if (($linkdst ne "../init.d/$bn") && ($linkdst ne "../init.d/$bn")) {
+	if (($linkdst ne "$initd/$bn") && ($linkdst ne "../init.d/$bn")) {
 	    print STDERR "update-rc.d: warning: $fn is not a link to ../init.d/$bn\n";
 	    return 0;
 	}

I'm not sure if this is serious enough (read: how many people get hit by this)
to do yet another non-maintainer release of dpkg ...

Mike.
-- 
 Miquel van Smoorenburg |  
    miquels@cistron.nl  |  Luck is when preparation meets opportunity


--
E-mail the word "unsubscribe" to debian-devel-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to listmaster@debian.org


Reply to: