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

Re: dh_installinetd



Brian May <bam@debian.org> wrote:
> Has anyone considered writing such a beast?

> I find maintaining inetd entries using my custom made maintainer scripts
> a pain in the neck, because I make assumptions that are not always
> correct, and the different maintainer scripts have duplicated code.
[...]

Hello,
*inetd seems to die a slow death anyway, the problem is not a missing
dh_installinetd but the support tools below.

update-inetd does not know which package added an entry, if you have
two different packages providing and containing an executable with the
same name your a in trouble: Take for example foo and bar, both
contain /usr/sbin/blah and manage an entry in inetd-conf, foo is
active and installed, bar is uninstalled with its inetd-entry
disabled. Now you choose to purge bar, its postrm invokes
'update-inetd --remove blah' and /usr/sbin/blah is gone from
inetd.conf although foo is still installed.

Test it yourself:
*prompt* touch /tmp/inetd.test
*prompt* /usr/sbin/update-inetd --file /tmp/inetd.test --group MAIL \
  --comment-chars \#foo.disabled\# --add \
  "finger   stream  tcp     nowait  mail    /usr/sbin/blah"
*prompt* /usr/sbin/update-inetd --file /tmp/inetd.test --group MAIL \
   --comment-chars \#foo.disabled\# --disable finger
*prompt* /usr/sbin/update-inetd --file /tmp/inetd.test --group MAIL \
  --comment-chars \#bar.disabled\# --add \
  "finger   stream  tcp     nowait  mail    /usr/sbin/blah"
*prompt* /usr/sbin/update-inetd --remove blah

In case you wonder, it does not help to specify --comment-chars to the
--remove. 

The missing integration of xinetd is another problem (I am lookin at
woody, I've read mails about fixing this, but do not know whether it
has happend yet).
               cu andreas
-- 
Hey, da ist ein Ballonautomat auf der Toilette!
Unofficial _Debian-packages_ of latest unstable _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/



Reply to: