Package: debhelper
Version: 4.2.30
Severity: normal

I've come against the problem - I suspect you're aware of it - that
dh_installinit does not respect the system administrator's changed to
/etc/rc* symlinks.

Normally dh_installinit will invoke "update-rc.d <daemon> defaults",
creating the symlinks.

But a user may, reasonably, want a daemon installed, but not started at
boot.  They want it to run only when they want it to, starting it manually
with "/etc/init.d/<daemon>.  (an example is in #291766, filed against
xprt-common, which handles /etc/init.d/xprint).

The obvious solution is for that administrator to run "update-rc.d
<daemon> remove", which provides the desired behaviour: the daemon does not
start at boot, but can be started manually.

The problem with this is that on upgrade, dh_installinit invokes
"update-rc.d <daemon> defaults", which restores the symlinks back again,
ignoring the system administrator's deliberate instructions to remove them.

I'm not sure if you'll say the bug is in update-rc.d rather than
dh_installinit, but since dh_installinit, from my perspective as the
xprt-common maintainer, is "causing" the problem, I'll start the
conversation with you and see where we can go from here.

If there is in fact an alternate, better, solution that produces the desired
behaviour, other than manipulating update-rc.d, then please let me know!


Drew

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages debhelper depends on:
ii  binutils                      2.15-5     The GNU assembler, linker and bina
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  debconf-utils                 1.4.42     debconf utilities
ii  dpkg-dev                      1.10.26    Package building tools for Debian
ii  file                          4.12-1     Determines file type using "magic"
ii  html2text                     1.3.2a-1   An advanced HTML to text converter
ii  perl                          5.8.4-5    Larry Wall's Practical Extraction 
ii  po-debconf                    0.8.17     Manage translated Debconf template

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to