monotone-debian
[Top][All Lists]
Advanced

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

[Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and d


From: Petter Reinholdtsen
Subject: [Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and dependencies in init.d script
Date: Sat, 12 Sep 2009 22:13:36 +0200
User-agent: Mutt/1.5.19 (2009-01-05)

[Zack Weinberg]
> I don't know how to do this; can you point me at instructions?

I can point to you an example.  In the latest upload of the lprng
package, I added code like this before the #DEBHELPER# marker to
detect the incorrect setup and remove the broken configuration (before
the correct one is inserted in the #DEBHELPER# block.

  # Those using dependency based boot sequencing with sysv-rc and installing
  # lprng before version 3.8.A-2.2 would miss the runlevel 4 symlink.
  # Recover from this.
  if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "3.8.A-2.2" \
     && [ -f /etc/rc2.d/[SK][0-9][0-9]lprng ] && [ -f 
/etc/rc4.d/K[0-9][0-9]lprng ]
  then
     update-rc.d -f lprng remove
  fi

Happy hacking,
-- 
Petter Reinholdtsen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]