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

Re: dh_installinetd



On Sun, Mar 09, 2003 at 10:04:34AM -0500, Joey Hess wrote:
> # Add example entry to inetd.conf.
> if [ "$1" = configure -a -x /usr/sbin/update-inetd -a -f /etc/inetd.conf ]; then
>         if ! grep -q in.mooix /etc/inetd.conf; then
>                 update-inetd --group OTHER --add "#<disabled>#7777      stream  tcp     nowait  root            /usr/sbin/tcpd /usr/sbin/in.mooix"
>         fi
> fi
> 
> postrm:
> 
> if [ "$1" = remove ]; then
>         update-inetd --remove --pattern in.mooix 7777
> fi

The scripts I took will also disable the service inbetween upgrades, so
you get connection refused rather then potentially unpredictable
behaviour if a new connection comes in during an upgrade.

Perhaps this is not desirable, I haven't really though about it much.
--
Brian May <bam@debian.org>



Reply to: